/*
Theme Name: Quest Billing Theme
Theme URI:
Author: Custom
Description: Quest Billing Services – home + payment pages
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: quest-billing
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
}
a { color: #1a5c2a; }

/* ── HEADER ── */
.site-header {
  background: #fff;
  border-bottom: 2.5px solid #1a5c2a;
  padding: 16px 24px;
}
.site-header .logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a5c2a;
  letter-spacing: -0.5px;
  display: inline-block;
}
.site-header .logo sup { font-size: .45em; vertical-align: super; }

/* ── HERO ── */
.hero { background: #f2f2f2; padding: 32px 24px 0; }
.hero .accent-bar { width: 100%; height: 4px; background: #1a5c2a; margin-bottom: 14px; }
.hero h1 { font-size: 2.8rem; font-weight: 900; color: #1a5c2a; line-height: 1.2; margin-bottom: 12px; }
.hero .tagline { font-size: .95rem; color: #333; margin-bottom: 24px; }
.hero-photo-wrap { display: none; width: calc(100% + 48px); margin: 0 -24px; line-height: 0; }
.hero-photo { width: 100%; height: 200px; object-fit: cover; object-position: center top; display: block; border-radius: 8px 8px 0 0; }
@media (min-width:768px) {
  .hero { display: flex; align-items: center; gap: 48px; padding: 52px 60px 0; }
  .hero-content { flex: 1; min-width: 0; }
  .hero h1 { font-size: 3.2rem; }
  .hero-photo-wrap { display: block; flex: 1; width: auto; max-width: 480px; margin: 0; align-self: flex-end; }
  .hero-photo { width: 100%; height: 280px; border-radius: 10px 10px 0 0; }
}
@media (min-width:1100px) {
  .hero { padding: 60px 80px 0; gap: 60px; }
  .hero h1 { font-size: 3.8rem; }
  .hero-photo { height: 320px; }
}
@media (min-width:1400px) { .hero-photo { height: 360px; } }

/* ── FORM SECTION ── */
.form-section { background: #f2f2f2; padding: 0 16px 40px; }
@media (min-width:768px)  { .form-section { padding: 0 60px 52px; } }
@media (min-width:1100px) { .form-section { padding: 0 80px 60px; } }
.form-card { background: #fff; border-radius: 8px; padding: 24px 20px; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
@media (min-width:768px) { .form-card { padding: 32px 36px; } }
.form-card .intro { font-size: .95rem; color: #333; margin-bottom: 12px; }
.form-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.form-links a { font-size: .9rem; text-decoration: underline; color: #1a5c2a; }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
@media (min-width:768px) {
  .form-fields { flex-direction: row; align-items: flex-start; gap: 20px; }
  .form-fields .field { flex: 1; }
}
.field label { display: block; font-size: .82rem; color: #333; margin-bottom: 5px; }
.field label .req { color: #c0392b; }
.field input, .field select {
  width: 100%; border: 1.5px solid #bbb; border-radius: 4px;
  padding: 10px 12px; font-size: .95rem; color: #222;
  outline: none; transition: border-color .2s; background: #fff; appearance: none;
}
.field input:focus, .field select:focus { border-color: #1a5c2a; box-shadow: 0 0 0 3px rgba(26,92,42,.1); }
.field input::placeholder { color: #aaa; }
.field .hint { font-size: .75rem; color: #888; margin-top: 4px; }
.form-footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.btn-continue {
  background: #e8e8e8; color: #666; border: none; border-radius: 30px;
  padding: 11px 32px; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s;
}
.btn-continue:hover { background: #1a5c2a; color: #fff; }

/* ── DIVIDER ── */
.section-divider { border: none; border-top: 1.5px solid #d8d8d8; margin: 0; }

/* ── PAYMENT OPTIONS ── */
.payment-section { background: #fff; padding: 36px 24px; }
@media (min-width:768px)  { .payment-section { display: flex; gap: 60px; align-items: flex-start; padding: 52px 60px; } }
@media (min-width:1100px) { .payment-section { padding: 60px 80px; gap: 80px; } }
.payment-left { margin-bottom: 32px; }
@media (min-width:768px) { .payment-left { flex: 1; margin-bottom: 0; } .payment-right { flex: 1; } }
.payment-left h2 { font-size: 1.35rem; font-weight: 900; color: #1a5c2a; line-height: 1.25; margin-bottom: 28px; }
@media (min-width:768px) { .payment-left h2 { font-size: 1.75rem; } }
.dots-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; max-width: 300px; }
@media (min-width:768px) { .dots-grid { max-width: 340px; gap: 10px; } }
.dot { aspect-ratio: 1; border-radius: 50%; }
.c0 { background: transparent; } .c1 { background: #3dcc6e; } .c2 { background: #1a5c2a; }
.c3 { background: #2e8b4a; }    .c4 { background: #23a455; } .c5 { background: #0f3d1c; }
.c6 { background: #57e08a; }
.payment-right { display: flex; flex-direction: column; gap: 0; }
.pay-opt { padding: 20px 0; border-bottom: 1px solid #e5e5e5; }
.pay-opt:first-child { padding-top: 0; }
.pay-opt:last-child  { border-bottom: none; padding-bottom: 0; }
.pay-opt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pay-opt-head .ico { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pay-opt-head h3 { font-size: .97rem; font-weight: 700; color: #1a5c2a; }
.pay-opt p { font-size: .88rem; color: #444; line-height: 1.55; }

/* ── FAQ ── */
.faq-section { background: #e8f3ec; padding: 36px 24px; }
@media (min-width:768px)  { .faq-section { padding: 52px 60px; } }
@media (min-width:1100px) { .faq-section { padding: 60px 80px; } }
.faq-section h2 { font-size: 1.5rem; font-weight: 900; color: #1a5c2a; margin-bottom: 36px; line-height: 1.2; }
@media (min-width:768px) { .faq-section h2 { font-size: 2rem; text-align: center; } }
.faq-grid { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 2.5px solid #1a5c2a; padding: 18px 0; }
.faq-item:last-of-type { border-bottom: 1px solid #c5dcc9; }
@media (min-width:768px) {
  .faq-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 32px; margin-bottom: 40px; }
  .faq-item:last-of-type { border-bottom: none; }
}
.faq-item h3 { font-size: 1rem; font-weight: 700; color: #1a5c2a; margin-bottom: 8px; line-height: 1.3; }
.faq-item p  { font-size: .86rem; color: #444; line-height: 1.55; margin-bottom: 10px; }
.faq-item a  { font-size: .88rem; color: #1a5c2a; text-decoration: underline; font-weight: 600; }
.support-block { margin-top: 28px; font-size: .9rem; color: #444; line-height: 1.8; }
@media (min-width:768px) { .support-block { text-align: center; margin-top: 0; } }
.support-block a { color: #1a5c2a; text-decoration: underline; font-weight: 600; display: inline; }
.support-block .break { display: block; }
@media (min-width:768px) { .support-block .break { display: inline; } }

/* ── PAYMENT CARD PAGE ── */
.main-content {
  background: #f2f2f2; min-height: calc(100vh - 200px);
  padding: 40px 16px 60px; display: flex; justify-content: center; align-items: flex-start;
}
@media (min-width:768px) { .main-content { padding: 52px 40px 72px; } }
.payment-card {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 16px rgba(0,0,0,.09);
  padding: 28px 20px 32px; width: 100%; max-width: 860px;
}
@media (min-width:768px) { .payment-card { padding: 36px 44px 44px; } }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.card-header h2 { font-size: 1.2rem; font-weight: 800; color: #222; }
@media (min-width:768px) { .card-header h2 { font-size: 1.35rem; } }
.card-brands { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-brands .brand { height: 26px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 2px 5px; display: flex; align-items: center; justify-content: center; background: #fff; }
.brand svg { display: block; }
.form-row { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
@media (min-width:600px) {
  .form-row.cols-3 { flex-direction: row; gap: 16px; }
  .form-row.cols-3 .field:first-child { flex: 2; }
  .form-row.cols-3 .field { flex: 1; }
}
.input-prefix-wrap { position: relative; }
.input-prefix-wrap .prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #555; font-size: .95rem; pointer-events: none; }
.input-prefix-wrap input { padding-left: 26px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 40px; }
.input-icon-wrap .field-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #999; display: flex; }
.form-divider { border: none; border-top: 1.5px solid #ebebeb; margin: 24px 0; }
.section-label { font-size: .88rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.btn-pay {
  width: 100%; background: #1a5c2a; color: #fff; border: none; border-radius: 50px;
  padding: 15px 32px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  letter-spacing: .02em; transition: background .2s, transform .1s; margin-top: 8px;
}
.btn-pay:hover  { background: #15491f; }
.btn-pay:active { transform: scale(.99); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .78rem; color: #888; }
.secure-note svg { color: #1a5c2a; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: #0d3d1e; color: #fff; padding: 36px 24px 28px; }
@media (min-width:768px)  { footer { padding: 44px 60px 32px; } }
@media (min-width:1100px) { footer { padding: 44px 80px 32px; } }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.footer-logo { font-size: 1.7rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.footer-logo sup { font-size: .45em; vertical-align: super; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: background .2s;
}
.footer-socials a:hover { background: rgba(255,255,255,.15); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 0 0 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.footer-links a { color: #fff; text-decoration: underline; font-size: .85rem; line-height: 1.4; }
.privacy-badge { display: inline-block; background: #0070f3; color: #fff; font-size: .55rem; font-weight: 700; border-radius: 3px; padding: 1px 4px; vertical-align: middle; letter-spacing: .02em; }
.footer-legal { font-size: .77rem; color: #a8cfb5; line-height: 1.7; }
.footer-legal p { margin-bottom: 10px; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ── ERROR MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; max-width: 420px; width: 100%;
  padding: 36px 28px 32px; box-shadow: 0 8px 40px rgba(0,0,0,.18);
  text-align: center; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  cursor: pointer; color: #999; font-size: 1.3rem; line-height: 1;
}
.modal-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fff0f0;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.modal-box h3 { font-size: 1.15rem; font-weight: 800; color: #222; margin-bottom: 10px; }
.modal-box p  { font-size: .92rem; color: #555; line-height: 1.6; margin-bottom: 22px; }
.modal-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a5c2a; color: #fff; text-decoration: none;
  border-radius: 50px; padding: 12px 28px; font-size: 1rem; font-weight: 700; margin-bottom: 18px;
}
