/* ==========================================
   App Environment Modern UI Revamp Stylesheet
   ========================================== */

/* Main App Wrapper */
body {
  background-color: #f8fafc !important;
  font-family: var(--font_popinsRegular), 'Poppins', sans-serif !important;
  color: #334155;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Revamp - App Header */
.app-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.app-header .container-fluid {
  max-width: 1425px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.btn-back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #216575 !important;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

.btn-back-to-site:hover {
  background-color: #216575;
  color: #ffffff !important;
  border-color: #216575;
  box-shadow: 0 2px 8px rgba(33, 101, 117, 0.2);
}

.btn-back-to-site i {
  font-size: 0.85rem;
}

/* Main App Section Container */
.app-content-area {
  flex: 1 0 auto;
  padding: 24px 0 40px 0;
}

/* App Workspace Title Bar */
.app-workspace-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.app-workspace-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.app-workspace-sub {
  font-size: 0.875rem;
  color: #64748b;
}

.app-steps-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 6px 16px;
}

.step-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.step-badge.active {
  color: #216575;
  font-weight: 700;
}

.step-arrow {
  font-size: 0.65rem;
  color: #cbd5e1;
}

.s_pgs_gs {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ------------------------------------------
   Form Revamp (.gs_form--Container)
   ------------------------------------------ */
.gs_form--Container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 50%;
}

.gs_form--box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  transition: box-shadow 0.2s ease;
}

.gs_form--box:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05) !important;
}

.heading_tertiary {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading_tertiary .text-danger {
  color: #ef4444 !important;
}

/* Secure disclaimer text */
.secureinfodisclaimer {
  font-size: 0.78rem !important;
  color: #64748b !important;
  margin-top: 4px;
  margin-bottom: 14px;
}

/* Inputs and Selects Modern Look */
.input,
.select {
  height: 46px !important;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  font-size: 0.9rem !important;
  color: #1e293b !important;
  transition: all 0.2s ease-in-out !important;
}

.input::placeholder {
  color: #94a3b8;
  font-size: 0.875rem;
}

.input:focus,
.select:focus {
  background-color: #ffffff !important;
  border-color: #216575 !important;
  box-shadow: 0 0 0 3px rgba(33, 101, 117, 0.15) !important;
  outline: none !important;
}

.selectWrapper select {
  cursor: pointer;
}

/* Radio Buttons */
.gs_form--radioContainer {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.radioBtn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 0 !important;
}

.radioBtn--circle {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #cbd5e1;
  background-color: #ffffff !important;
  border-radius: 50%;
  margin-right: 8px !important;
  padding: 2px !important;
  transition: all 0.2s ease;
}

.radioBtn--circle::after {
  background-color: #216575 !important;
  border-radius: 50%;
}

.radionBtn--input:checked ~ .radioBtn--circle {
  border-color: #216575 !important;
}

.radioBtn--text {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

/* Buttons inside form */
.gs_form--addAdditonalInfo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.gs_form--addAdditonalInfo:hover {
  background-color: #dcfce7 !important;
  border-color: #86efac !important;
}

.gs_form_addInfo_text {
  color: #166534 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.gs_form_plusIcon {
  width: 14px;
  height: 14px;
}

/* Submit Button */
#redirect-to-payment {
  height: 50px !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  background-color: #216575 !important;
  box-shadow: 0 4px 12px rgba(33, 101, 117, 0.25) !important;
  transition: all 0.2s ease !important;
}

#redirect-to-payment:hover {
  background-color: #1a5260 !important;
  box-shadow: 0 6px 18px rgba(33, 101, 117, 0.35) !important;
  transform: translateY(-1px);
}

/* ------------------------------------------
   Preview Section Revamp Wrapper
   ------------------------------------------ */
.gs_table--Container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  padding: 20px !important;
  position: sticky;
  top: 85px;
  flex: 1 1 50%;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.preview-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.preview-live-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Ensure template table preview inside stays 100% unchanged in structure and scrollable */
.gs_table_box {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  border-radius: 6px;
}

/* ------------------------------------------
   Sticky 1-Row Footer
   ------------------------------------------ */
.app-sticky-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 1040;
  width: 100%;
  background-color: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
}

.app-footer-row {
  max-width: 1425px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}

.app-footer-brand-sec {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-footer-ssl-img {
  height: 26px;
  width: auto;
}

.app-footer-payment-img {
  height: 22px;
  width: auto;
}

.app-footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
}

.info-divider {
  color: #cbd5e1;
}

.app-footer-copyright {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
}

.app-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.app-footer-links a {
  color: #475569 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.app-footer-links a:hover {
  color: #216575 !important;
  text-decoration: underline;
}

.app-footer-links .divider {
  color: #cbd5e1;
}

.app-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #475569;
  transition: all 0.2s ease;
}

.app-social-icon:hover {
  background-color: #216575;
  color: #ffffff;
  transform: translateY(-1px);
}

.app-social-icon img {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------
   Responsive & Mobile Stacked Layout
   ------------------------------------------ */
@media (max-width: 991px) {
  .s_pgs_gs {
    flex-direction: column !important;
  }

  .gs_form--Container {
    width: 100% !important;
    order: 1 !important;
  }

  .gs_table--Container {
    width: 100% !important;
    order: 2 !important;
    position: static !important;
    margin-top: 24px;
  }

  .app-footer-row {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    text-align: center;
  }

  .app-footer-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .app-footer-copyright,
  .app-footer-links {
    white-space: normal;
  }

  .btn-back-to-site {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .app-header .container-fluid {
    padding: 0 16px;
  }
  
  .app-header-logo {
    height: 32px;
  }

  .gs_form--box {
    padding: 16px !important;
  }

  .heading_tertiary {
    font-size: 1rem !important;
  }

  .info-divider {
    display: none;
  }

  .app-footer-info {
    flex-direction: column;
    gap: 4px;
  }
}

