/* ============================================
   GET STARTED POPUP / MODAL
   ============================================ */

/* ── Overlay ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Box — W649 | radius 40 | fill #FEFDFB ── */
.popup-box {
  background: #FEFDFB;
  border-radius: 40px;
  width: 100%;
  max-width: 649px;
  height: auto;
  overflow-y: auto;
  padding: 50px;
  box-sizing: border-box;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
}
.popup-box::-webkit-scrollbar { display: none; }

.popup-overlay.is-open .popup-box {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.popup-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0EDE8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.popup-close:hover { background: #E5E0D8; }
.popup-close svg {
  width: 16px;
  height: 16px;
  stroke: #333;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Header ── */
.popup-header {
  text-align: center;
  margin-bottom: 8px;
}

/* Heading — Plus Jakarta Sans SemiBold 40px LH50 LS1px */
.popup-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: 1px;
  color: #000000;
  margin: 0 0 8px;
}

.popup-highlight { color: var(--primary); }

/* Subtitle — Inter Regular 16px LH28 LS0.2px #000000 */
.popup-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.2px;
  color: #000000;
  margin: 0;
}

/* ── Form ── */
.popup-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 2-column row */
.popup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Field group */
.popup-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Label — Inter Medium 13px LH auto LS 0 */
.popup-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 3px;
}

.popup-required {
  color: var(--primary);
  font-size: 13px;
}

.popup-optional {
  color: #717171;
  font-size: 11px;
  font-weight: 400;
}

/* Input wrapper with icon */
.popup-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.popup-input-icon {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

/* Input / Select — H45 | fill #FEFDFB | stroke #E6E4E3 1px | padding 12px */
.popup-input,
.popup-select {
  width: 100%;
  height: 45px;
  background: #FEFDFB;
  border: 1px solid #E6E4E3;
  border-radius: 8px;
  padding: 0 12px 0 40px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.popup-input:focus,
.popup-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226, 159, 41, 0.12);
}

.popup-input::placeholder { color: #717171; }

/* Select arrow */
.popup-select-wrap {
  position: relative;
}

.popup-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23717171' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.popup-select option { color: #1A1A1A; }
.popup-select.placeholder-active { color: #717171; }

/* Textarea — H75 */
.popup-textarea {
  width: 100%;
  height: 75px;
  background: #FEFDFB;
  border: 1px solid #E6E4E3;
  border-radius: 8px;
  padding: 12px 12px 12px 40px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: #1A1A1A;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(226, 159, 41, 0.12);
}

.popup-textarea::placeholder { color: #717171; }

/* Textarea icon sits at top */
.popup-input-wrap.is-textarea { align-items: flex-start; }
.popup-input-wrap.is-textarea .popup-input-icon { top: 12px; }

/* ── Submit Button ── */
.popup-submit {
  width: 100%;
  height: 50px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 4px;
}
.popup-submit:hover {
  background: #C4881A;
  transform: translateY(-2px);
}

.popup-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.popup-payment-note {
  color: #626262;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 19px;
  margin: -2px 0 0;
  text-align: center;
}

.popup-form-error {
  background: #FFF1F0;
  border: 1px solid #F4C7C3;
  border-radius: 8px;
  color: #A1261C;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
}

/* ══════════════════════════════════════════════
   POPUP — RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 680px) {
  .popup-box    { padding: 40px 32px; border-radius: 28px; }
  .popup-heading { font-size: 32px; line-height: 42px; }
}

@media (max-width: 560px) {
  .popup-box    { padding: 36px 24px; border-radius: 24px; }
  .popup-heading { font-size: 26px; line-height: 36px; }
  .popup-subtitle { font-size: 14px; line-height: 24px; }
  .popup-row    { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .popup-box    { padding: 28px 16px; border-radius: 20px; }
  .popup-heading { font-size: 22px; line-height: 32px; }
  .popup-close  { top: 14px; right: 14px; }
}
