:root {
  --yellow: #9ac343;
  --yellow-hover: #a7e81b;
  --yellow-soft: #fef9e0;
  --ink: #111111;
  --ink-secondary: #5f6368;
  --ink-muted: #9aa0a6;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --bg: #f1f3f4;
  --white: #ffffff;
  --red: #d93025;
  --surface: #f8f9fa;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.02);
  --shadow-lg:
    0 4px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.04);
  --shadow-xl:
    0 8px 16px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.06); 
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ==================== SHELL ==================== */
.shell {
  width: 100%;
  max-width: 860px;
  background: var(--white);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* ==================== LEFT COLUMN ==================== */
.col-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
}

.brand-bar {
  background: var(--yellow);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  background: var(--ink);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
}
.secured {
  font-size: 10.5px;
  color: var(--ink-secondary);
}
.secured strong {
  font-weight: 700;
  color: var(--ink);
}

.product {
  padding: 26px 22px 22px;
  flex: 1;
}
.product h1 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.meta-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-muted);
}

.contact-card {
  margin: 0 14px 14px;
  background: #fafaf7;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.c-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 9px;
}
.c-row:last-of-type {
  margin-bottom: 0;
}
.c-row svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.soc {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.soc:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.soc svg {
  width: 14px;
  height: 14px;
  color: #fff;
}
.soc-ig {
  background: #e1306c;
}
.soc-li {
  background: #0a66c2;
}
.soc-fb {
  background: #1877f2;
}

/* ==================== RIGHT COLUMN ==================== */
.col-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 92vh;
}
.col-right::-webkit-scrollbar {
  width: 3px;
}
.col-right::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.price-bar {
  padding: 24px 28px 18px;
}
.price-bar h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.price-amount {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.price-amount span {
  font-size: 15px;
  font-weight: 600;
}

/* ==================== ADDONS - ACCORDION ==================== */
.addons {
  padding: 0 28px 8px;
}

.addon {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: var(--white);
}
.addon:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.addon.checked {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.addon-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
}
.addon-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.addon-header-text {
  flex: 1;
}
.addon-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.addon-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.addon-cost {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.addon-readmore {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  background: none;
  border: none;
  font-family: "DM Sans", sans-serif;
  transition: color 0.15s;
}
.addon-readmore:hover {
  color: #1557b0;
}
.addon-readmore svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.addon-readmore.open svg {
  transform: rotate(180deg);
}

.addon-details {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.addon-details.open {
  max-height: 200px;
}
.addon-details-inner {
  padding: 0 16px 16px 46px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ==================== DIVIDER ==================== */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 28px 0;
}

/* ==================== FORM ==================== */
.fields {
  padding: 20px 28px 8px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req {
  color: var(--red);
  margin-left: 1px;
}

.field input,
.field > select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}
.field input::placeholder {
  color: #c4c7cc;
  font-weight: 400;
}

/* Field error state */
.field.error input,
.field.error .phone-wrap {
  border-color: var(--red) !important;
}
.field .field-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  font-weight: 500;
}
.field.error .field-error {
  display: block;
}

/* ==================== PHONE FIELD - CUSTOM DROPDOWN ==================== */
.phone-wrap {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: var(--white);
}
.phone-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  background: var(--surface);
  border: none;
  border-right: 1.5px solid var(--border);
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  flex-shrink: 0;
  height: 48px;
  transition: background 0.15s;
}
.phone-code-btn:hover {
  background: #eef0f2;
}
.phone-code-btn .flag {
  font-size: 18px;
  line-height: 1;
}
.phone-code-btn .code-text {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.phone-code-btn .chevron {
  width: 12px;
  height: 12px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}
.phone-code-btn.open .chevron {
  transform: rotate(180deg);
}

.phone-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  max-height: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
}
.phone-dropdown.open {
  display: block;
  animation: dropIn 0.2s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-search {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  outline: none;
  background: var(--surface);
}
.phone-search::placeholder {
  color: var(--ink-muted);
}

.phone-list {
  max-height: 192px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.phone-list::-webkit-scrollbar {
  width: 3px;
}
.phone-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.phone-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink);
  transition: background 0.1s;
}
.phone-option:hover {
  background: var(--yellow-soft);
}
.phone-option.active {
  background: var(--yellow-soft);
  font-weight: 600;
}
.phone-option .flag {
  font-size: 18px;
}
.phone-option .country-name {
  flex: 1;
  color: var(--ink-secondary);
  font-size: 12.5px;
}
.phone-option .dial-code {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.field .phone-wrap input.phone-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  background: transparent;
}
.field .phone-wrap input.phone-input:focus {
  border: none;
  box-shadow: none;
}

/* ==================== PAY BUTTON ==================== */
.form-footer {
  padding: 6px 28px 28px;
  margin-top: auto;
}
.pay-btn {
  width: 100%;
  height: 54px;
  background: var(--yellow);
  color: var(--ink);
  border: none;
  border-radius: 27px;
  font-size: 16px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(251, 222, 45, 0.3);
}
.pay-btn:hover {
  background: var(--yellow-hover);
  box-shadow: 0 4px 16px rgba(251, 222, 45, 0.45);
  transform: translateY(-1px);
}
.pay-btn:active {
  transform: translateY(0) scale(0.99);
}
.pay-btn:disabled {
  background: #f5edaa;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pay-btn .arrow {
  font-size: 18px;
}

/* Spinner */
.pay-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.pay-btn.loading .spinner {
  display: inline-block;
}
.pay-btn.loading .btn-text {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--red);
  display: none;
  line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 720px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  .shell {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    padding-bottom: 84px;
  }
  .col-left {
    border-right: none;
    display: contents;
  }
  .col-right {
    max-height: none;
    display: contents;
  }

  .brand-bar {
    order: 1;
  }
  .product {
    order: 2;
    padding: 20px 18px 16px;
  }
  .product h1 {
    font-size: 14.5px;
  }
  .price-bar {
    order: 3;
    padding: 20px 20px 14px;
  }
  .addons {
    order: 4;
    padding: 0 20px 8px;
  }
  .divider {
    order: 5;
    margin: 0 20px;
  }
  .fields {
    order: 6;
    padding: 20px 20px 8px;
  }
  .contact-card {
    order: 7;
    margin: 8px 14px 14px;
  }
  .form-footer {
    order: 8;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 100;
    margin: 0;
  }
}

/* GST Note */
.gst-note {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 8px;
}
