:root {
  --g: #cba677; /* Primary Gold (Brighter for dark bg) */
  --g2: #dfc19b; /* Hover Gold */
  --g3: #3a281c; /* Info Chip Background (Deep inset brown) */
  --ink: #fdfbf7; /* Primary Text (Pearl White for sharp contrast) */
  --mink: #c4a991; /* Secondary Text & Labels (Soft Tan) */
  --smoke: #e5d9c8; /* Website Background (Warm Beige) */
  --rule: #6b4d37; /* Borders & Dividers (Lighter brown) */
  --wh: #4d3625; /* Form Background (Deep Chocolate) */
  --err: #ff7676; /* Error State (Bright pastel red) */
  --radius: 10px;
}

/* ─────────────────────────────────────────────
   TWO-COLUMN SHELL (Locked height to prevent overflow)
───────────────────────────────────────────── */
.gf-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh; /* Locked to viewport height */
  overflow: hidden; /* Prevents whole page from scrolling */
}

.gf-image-col {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #4d3625; /* Fallback background color (Deep Chocolate) */
}

.gf-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ─────────────────────────────────────────────
   STEP 1 INTRO BLOCK
───────────────────────────────────────────── */
.gf-intro-block {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

.intro-heading {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--g); /* Gold to make it pop and feel premium */
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.intro-text {
  font-size: 13px;
  color: var(--ink); /* Pearl white for readability */
  line-height: 1.7;
  margin-bottom: 14px;
  opacity: 0.9;
}

.intro-text-small {
  font-size: 12px;
  color: var(--mink);
}

.intro-text-small a {
  color: var(--g);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.intro-text-small a:hover {
  color: var(--g2);
  border-bottom: 1px solid var(--g2);
}


.gf-form-col {
  background: var(--wh);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto; /* ONLY the form scrolls */
}

/* ─────────────────────────────────────────────
   STICKY STEPPER (3 Steps)
───────────────────────────────────────────── */
.gf-stepper-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wh);
  border-bottom: 1px solid var(--rule);
  padding: 8px 32px 0;
}

.gf-brand-line {
  font-family: "Playfair Display", serif;
  font-size: 11px;
  color: var(--mink);
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gf-brand-line::before,
.gf-brand-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.gf-steps {
  display: flex;
  align-items: flex-start;
}

.gf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
}

.gf-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: var(--rule);
  transition: background 0.35s;
  z-index: 0;
}
.gf-step.done:not(:last-child)::after {
  background: var(--g);
}

.gf-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--wh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--mink);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
/* Ensure icons are dark chocolate when background turns pearl/gold */
.gf-step-circle.done {
  background: var(--g);
  border-color: var(--g);
  color: var(--wh);
}
.gf-step-circle.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--wh);
}

.gf-step-meta {
  margin-top: 7px;
  text-align: center;
  padding-bottom: 14px;
}
.gf-step-num {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mink);
  margin-bottom: 1px;
}
.gf-step-name {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mink);
  white-space: nowrap;
  transition: color 0.3s;
}
.gf-step-name.active {
  color: var(--ink);
}
.gf-step-name.done {
  color: var(--g);
}

.gf-prog-bar {
  height: 2px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.gf-prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.4s ease;
}

/* ─────────────────────────────────────────────
   PANELS
───────────────────────────────────────────── */
.gf-panels {
  flex: 1;
  padding: 18px 32px 40px; /* Tighter vertical spacing */
  max-width: 640px;
  width: 100%;
}

.gf-panel {
  display: none;
}
.gf-panel.on {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gf-stitle {
  margin-bottom: 30px;
}
.gf-stitle-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}
.gf-stitle-top i {
  font-size: 19px;
  color: var(--g);
}
.gf-stitle-top h4 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.gf-stitle h6 {
  font-size: 13px;
  color: #fff;
  padding-left: 31px;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────
   FORM FIELDS & AUTOFILL FIX
───────────────────────────────────────────── */
.gf-field {
  margin-bottom: 16px;
}

.gf-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mink);
  margin-bottom: 6px;
}

.gf-field input,
.gf-field select,
.gf-field textarea {
  width: 100%;
  padding: 12px 0 10px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--rule);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  border-radius: 0;
}

.gf-field input::placeholder,
.gf-field textarea::placeholder {
  color: var(--mink);
  font-size: 14px;
  font-weight: 300;
  opacity: 0.6;
}

.gf-field input:focus,
.gf-field select:focus,
.gf-field textarea:focus {
  border-bottom-color: var(--g);
}

.gf-field input.error-input,
.gf-field select.error-input {
  border-bottom-color: var(--err);
}

.gf-field .error {
  font-size: 11px;
  color: var(--err);
  margin-top: 4px;
  display: none;
}
.gf-field input.error-input ~ .error,
.gf-field select.error-input ~ .error {
  display: block;
}

/* Browser Autofill Fix (Removes pale blue background) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--wh) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.gf-field select {
  /* Using white for the select arrow so it shows on dark background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fdfbf7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
/* Style select options so they are readable on all devices */
.gf-field select option {
  background: var(--wh);
  color: var(--ink);
}

.gf-field textarea {
  resize: none;
  line-height: 1.7;
  padding-top: 10px;
}

.gf-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.gf-rupee-wrap {
  position: relative;
}
.gf-rupee-wrap .sym {
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--g);
  padding-right: 12px;
  border-right: 1.5px solid var(--rule);
  font-weight: 700;
}
.gf-rupee-wrap input {
  padding-left: 38px !important;
  font-weight: 700;
  font-size: 16px;
}

/* ─────────────────────────────────────────────
   AMOUNT TILES
───────────────────────────────────────────── */
.gf-amt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.amount-btn {
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 8px 15px;
  text-align: center;
  cursor: pointer;
  background: var(--wh);
  transition: all 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  font-family: "Playfair Display", serif;
  display: block;
  width: 100%;
}

.amount-btn.popular-tile::after {
  content: attr(data-tag);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g);
  color: var(--wh); /* Fixed text color */
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.amount-btn:hover,
.amount-btn.active-amount {
  background: var(--ink); /* Becomes Pearl White */
  border-color: var(--ink);
}

.amount-btn .ab-price {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  transition: color 0.2s;
}
.amount-btn .ab-label {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--mink);
  margin-top: 4px;
  display: block;
  line-height: 1.3;
  transition: color 0.2s;
}

/* Ensure text is dark chocolate when tile background is pearl white */
.amount-btn:hover .ab-price,
.amount-btn.active-amount .ab-price {
  color: var(--wh);
}
.amount-btn:hover .ab-label,
.amount-btn.active-amount .ab-label {
  color: var(--mink);
}

/* ─────────────────────────────────────────────
   PAYMENT SUMMARY (Smooth animation)
───────────────────────────────────────────── */
.gift-summary {
  background: var(--ink); /* Pearl White background */
  border-radius: 12px;
  padding: 0 20px;
  margin-top: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-summary.show {
  max-height: 160px;
  padding: 10px 10px 10px;
  opacity: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wh); /* Dark Chocolate text on white background */
  opacity: 0.8;
  margin-bottom: 9px;
  letter-spacing: 0.03em;
}
.summary-row.total {
  border-top: 1px solid rgba(77, 54, 37, 0.2); /* Darkened border */
  padding-top: 12px;
  margin-bottom: 0;
  color: var(--wh); /* Dark Chocolate text */
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
}
.summary-row.total span:last-child {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--g); /* Keep total amount Gold */
}

/* ─────────────────────────────────────────────
   INFO CHIP & DIVIDER
───────────────────────────────────────────── */
.gf-info-chip {
  display: flex;
  gap: 10px;
  background: var(--g3);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 20px;
}
.gf-info-chip i {
  font-size: 15px;
  color: var(--g);
  margin-top: 1px;
  flex-shrink: 0;
}
.gf-info-chip p {
  font-size: 12px;
  color: var(--mink);
  line-height: 1.6;
}

.gf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.gf-divider::before,
.gf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.gf-divider span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mink);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   NAV BUTTONS & SUBMIT
───────────────────────────────────────────── */
.gf-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.gf-btn-back {
  width: 50px;
  height: 42px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.gf-btn-back:hover {
  border-color: var(--g);
}
.gf-btn-back i {
  font-size: 18px;
}

.gf-btn-next {
  flex: 1;
  height: 42px;
  background: var(--ink); /* Pearl White */
  color: var(--wh); /* Dark Chocolate text */
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gf-btn-next:hover {
  background: var(--g);
  color: var(--wh);
}
.gf-btn-next:active {
  transform: scale(0.99);
}

#submitButton {
  flex: 1;
  height: 42px;
  background: #2e7d32; /* Luxurious Forest Green */
  color: #ffffff; /* White text */
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
#submitButton:hover {
  background: #1b5e20; /* Darker green on hover */
}
#submitButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#submitButton i {
  font-size: 16px;
}

.gf-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.gf-tbadge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--mink);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.gf-tbadge i {
  font-size: 14px;
  color: var(--g);
}

/* ─────────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .gf-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto; /* Release height lock for mobile scrolling */
    overflow: visible;
  }
  .gf-form-col {
    order: 1;
    height: auto;
    overflow: visible;
  }
  .gf-image-col {
    order: 2;
    position: relative;
    height: 320px;
  }
  .gf-stepper-bar {
    padding: 14px 16px 0;
  }
  .gf-step-meta .gf-step-num {
    display: none;
  }
  .gf-step-name {
    font-size: 10px;
  }
  .gf-step-circle {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .gf-step:not(:last-child)::after {
    top: 15px;
    left: calc(50% + 17px);
    right: calc(-50% + 17px);
  }
  .gf-panels {
    padding: 24px 18px 56px;
    max-width: 100%;
  }
  .gf-two {
    grid-template-columns: 1fr;
  }
  .gf-amt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .gf-trust {
    gap: 12px;
  }
  .gf-image-overlay h1 {
    font-size: 24px;
  }
  .gf-image-overlay {
    padding: 24px 20px;
  }
}
@media (max-width: 400px) {
  .gf-step-name {
    display: none;
  }
}
