/* =====================================================
   POPUP FORM COMPONENT STYLESHEET (LUXURY 2-COLUMN SPLIT MODAL)
   Path: css/components/popup-form.css
   *BALANCED GOLDEN PROPORTIONS - NOT SQUISHED (TIDAK GEPENG)*
   *SPACIOUS TEXTAREA (92px) & COMFORTABLE PADDING*
===================================================== */

/* Overlay Background - Pure Centering & Soft Blur */
.overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.overlay.active,
.overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Card Box - Balanced Golden Aspect Ratio (820px x ~540px) */
.popup-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  background: #ffffff;
  border-radius: 22px;
  padding: 0 !important;
  box-shadow: 0 30px 75px -15px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  margin: auto;
  box-sizing: border-box;
}

.popup-modal::-webkit-scrollbar {
  width: 6px;
}

.popup-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.overlay.active .popup-modal,
.overlay.show .popup-modal {
  transform: scale(1) translateY(0);
}

/* Close Button (Floating Top Right) */
.popup-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.popup-modal .close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg) scale(1.06);
}

/* Split Grid Layout */
.popup-split-container {
  display: grid;
  grid-template-columns: 335px 1fr;
  min-height: auto;
  align-items: stretch;
}

/* =====================================================
   LEFT COLUMN: BRAND & VALUE PROPOSITION PANEL
===================================================== */

.popup-brand-panel {
  background: linear-gradient(150deg, #091e42 0%, #133b7a 45%, #1d4ed8 80%, #2563eb 100%);
  padding: 34px 28px 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.popup-brand-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.popup-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.popup-pill-badge i {
  color: #fbbf24;
}

.popup-brand-title {
  font-size: 1.36rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.30;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.popup-brand-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Value Proposition Benefits */
.popup-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
}

.popup-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.popup-benefit-item i {
  color: #34d399;
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.popup-benefit-item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.popup-benefit-item span {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 1px;
}

/* Trust & Security Badge */
.popup-trust-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.40;
  box-sizing: border-box;
}

.popup-trust-box i {
  font-size: 1.15rem;
  color: #38bdf8;
  flex-shrink: 0;
}

/* =====================================================
   RIGHT COLUMN: CLEAN ENTERPRISE FORM PANEL
===================================================== */

.popup-form-panel {
  padding: 32px 34px 28px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.popup-form-header {
  margin-bottom: 16px;
  padding-right: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.popup-form-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2.5px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px;
}

.popup-form-header h3 {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  line-height: 1.25;
}


.popup-form-header p {
  font-size: 0.80rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Form Grid */
.popup-form-panel .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.popup-form-panel .form-group {
  display: flex;
  flex-direction: column;
}

.popup-form-panel .form-group.full {
  grid-column: span 2;
}

.popup-form-panel .form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.popup-form-panel .form-group label .req {
  color: #ef4444;
}

/* Input with Icon Wrapper */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.86rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.textarea-icon-wrap .input-icon {
  top: 12px;
}

.input-with-icon input,
.input-with-icon textarea {
  width: 100%;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding-left: 35px !important;
  padding-right: 12px !important;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-size: 0.86rem;
}

.input-with-icon input {
  height: 40px;
}

/* Spacious Message Textarea (Lebar & Tidak Gepeng) */
.input-with-icon textarea {
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  height: 92px;
  min-height: 84px;
  line-height: 1.5;
}

.input-with-icon input::placeholder,
.input-with-icon textarea::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-with-icon input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
  color: #2563eb;
}

/* Status Notification Banner */
.popup-form-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.popup-form-status.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.popup-form-status.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Spinner Animation */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Footer & Submit Button */
.popup-form-panel .form-footer {
  margin-top: 16px;
}

.popup-form-panel .submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.30);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.popup-form-panel .submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.40);
}

.popup-form-panel .submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE PHONES)
===================================================== */

@media (max-width: 860px) {
  .popup-modal {
    max-width: 540px;
    max-height: 94vh;
    border-radius: 18px;
  }

  .popup-split-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .popup-brand-panel {
    padding: 22px 22px 16px;
  }

  .popup-brand-title {
    font-size: 1.20rem;
    margin-bottom: 6px;
  }

  .popup-brand-desc {
    display: none;
  }

  .popup-benefits-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 0;
  }

  .popup-benefit-item {
    gap: 6px;
    align-items: center;
  }

  .popup-benefit-item span {
    display: none;
  }

  .popup-benefit-item strong {
    font-size: 0.78rem;
  }

  .popup-trust-box {
    display: none;
  }

  .popup-form-panel {
    padding: 22px 22px 24px;
  }

  .popup-form-header {
    margin-bottom: 14px;
    padding-right: 28px;
  }

  .popup-form-header h3 {
    font-size: 1.20rem;
  }

  .popup-form-header p {
    font-size: 0.80rem;
  }

  .popup-form-panel .form-grid {
    gap: 10px 12px;
  }

  .input-with-icon textarea {
    height: 80px;
    min-height: 75px;
  }
}

@media (max-width: 540px) {
  .popup-modal {
    border-radius: 16px;
    margin: 8px;
    max-height: 95vh;
  }

  .popup-benefits-list {
    display: none;
  }

  .popup-form-panel .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .popup-form-panel .form-group.full {
    grid-column: span 1;
  }

  .popup-form-header h3 {
    font-size: 1.12rem;
  }

  .input-with-icon textarea {
    height: 75px;
  }

  .popup-form-panel .submit-btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }
}

/* =====================================================
   GLOBAL TUBE / PILL BUTTON CONSISTENCY (border-radius: 50px)
===================================================== */
button:not(.close-btn):not(.navbar-toggler):not(.video-modal-close):not(.dash-dot):not(.site-navbar-lang-button):not([class*="site-navbar-lang"]):not(.lang-btn):not(.accordion-button):not([class*="accordion"]),
a[class*="btn"]:not(.site-navbar-lang-button):not([class*="site-navbar-lang"]):not(.lang-btn):not(.accordion-button):not([class*="accordion"]),
button[class*="btn"]:not(.site-navbar-lang-button):not([class*="site-navbar-lang"]):not(.lang-btn):not(.accordion-button):not([class*="accordion"]),
[class*="btn-"]:not(.site-navbar-lang-button):not([class*="site-navbar-lang"]):not(.lang-btn):not(.accordion-button):not([class*="accordion"]),
.home-1-btn,
.home-6-btn-demo,
.home-8-btn,
.btn-modul,
.btn-industry,
.btn-primary-hero,
.btn-secondary-hero,
.btn-cta-white,
.btn-event-register,
.btn-event-recording,
.btn-brochure-download,
.btn-blog-read,
.res-tab-btn,
.dash-action-btn,
.dash-tab-btn,
.submit-btn,
.search-bar button {
  border-radius: 50px !important;
}

.accordion-button,
button.accordion-button {
  border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
  border-radius: 0 !important;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
}
