/* ============================================================
   QUOTE FORM MODAL — "Báo giá" global modal
   Dark, self-contained card overlay on cream body.
   ============================================================ */

/* Body lock when modal open */
body.quote-form-open{
  overflow:hidden;
}

/* ---------- Root overlay ---------- */
.quote-form-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s ease, visibility 0s linear .35s;
}
.quote-form-modal[hidden]{ display:none; }
.quote-form-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .35s ease, visibility 0s linear 0s;
}

/* ---------- Backdrop ---------- */
.quote-form-backdrop{
  position:absolute;
  inset:0;
  background:rgba(14,6,6,.7);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  cursor:pointer;
}

/* ---------- Panel ---------- */
.quote-form-panel{
  position:relative;
  width:100%;
  max-width:1040px;
  max-height:90vh;
  overflow:auto;
  background:linear-gradient(180deg, #1A0A0B 0%, #0E0606 100%);
  color:#fff;
  border:1px solid rgba(232,196,101,.18);
  border-radius:20px;
  padding:40px 44px;
  transform:scale(.95) translateY(12px);
  opacity:0;
  transition:transform .4s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
}
.quote-form-modal.is-open .quote-form-panel{
  transform:scale(1) translateY(0);
  opacity:1;
}

/* Scrollbar tweak inside panel */
.quote-form-panel::-webkit-scrollbar{ width:8px; }
.quote-form-panel::-webkit-scrollbar-track{ background:transparent; }
.quote-form-panel::-webkit-scrollbar-thumb{
  background:rgba(232,196,101,.25);
  border-radius:4px;
}

/* ---------- Close button ---------- */
.quote-form-close{
  position:absolute;
  top:16px;
  right:18px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(232,196,101,.25);
  color:#fff;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:background .25s ease, border-color .25s ease, transform .25s ease, color .25s ease;
}
.quote-form-close:hover{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--dark);
  transform:rotate(90deg);
}

/* ---------- 50/50 layout ---------- */
.quote-form-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(28px, 3.5vw, 52px);
  align-items:start;
}
/* Collapse the two columns once the success view takes over */
.quote-form-panel:has(.quote-form-success:not([hidden])) .quote-form-layout{
  display:none;
}

/* ---------- Left column (brand + contact + social) ---------- */
.quote-form-aside{
  display:flex;
  flex-direction:column;
  gap:26px;
}
.quote-form-aside .quote-form-head{
  margin-bottom:0;
}

.qf-contact{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.qf-contact-item{
  display:flex;
  align-items:flex-start;
  gap:13px;
}
.qf-ico{
  flex:none;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(232,196,101,.1);
  border:1px solid rgba(232,196,101,.28);
  color:var(--gold);
}
.qf-ico svg{ width:18px; height:18px; }
.qf-contact-body{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.82);
}
.qf-contact-label{
  font-family:'Oswald', sans-serif;
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.qf-contact-body a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
  transition:color .2s ease;
}
.qf-contact-body a:hover{ color:var(--gold); }
.qf-hotline{
  font-family:'Oswald', sans-serif;
  font-size:24px !important;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--gold) !important;
}

.qf-social{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:6px;
  border-top:1px solid rgba(232,196,101,.14);
}
.qf-social-label{
  font-family:'Oswald', sans-serif;
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.qf-social-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.qf-social-row a{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(232,196,101,.25);
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.qf-social-row a svg{ width:18px; height:18px; }
.qf-social-row a:hover{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--dark);
  transform:translateY(-2px);
}

/* ---------- Heading ---------- */
.quote-form-head{
  text-align:left;
  margin-bottom:28px;
}
/* v52 — match canonical section eyebrow look exactly. Was Oswald 12px /
 * .22em / both-sides 30px gold bar — heavier + symmetric vs the rest of
 * the page, which uses homepage.css `.overline { font: 600 11px var(--font-mono);
 * letter-spacing: .3em }` + a single LEFT 30px bar. eyebrows.css already
 * forces colour to cream via !important; here we align font + drop the
 * ::after bar so only the LEFT bar paints, matching every other section
 * eyebrow on the page. */
.quote-form-head .overline{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font:600 11px/1.15 var(--font-mono);
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:18px;
}
.quote-form-head .overline::before{
  content:'';
  width:30px;
  height:1px;
  background:var(--gold);
}
.quote-form-head .section-title{
  font-family:'Oswald', sans-serif;
  font-size:clamp(26px, 3.4vw, 38px);
  font-weight:600;
  line-height:1.2;
  margin:0 0 12px;
  color:#fff;
}
.quote-form-head .section-title em{
  font-style:normal;
  background:var(--gold-shine);
  background-size:200% 200%;
  background-position:0% 50%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.quote-form-sub{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.7);
}

/* ---------- Form grid ---------- */
.quote-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 20px;
}

.form-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.form-field.full{ grid-column:1 / -1; }

.form-field label{
  font-family:'Oswald', 'Montserrat', sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
}
.form-field .req{ color:var(--gold); margin-left:2px; }

/* Inputs / selects */
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form input[type="date"],
.quote-form input[type="number"],
.quote-form select,
.quote-form textarea{
  width:100%;
  padding:12px 14px;
  font:inherit;
  font-size:14px;
  color:#fff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(232,196,101,.25);
  border-radius:10px;
  outline:none;
  transition:border-color .25s ease, background .25s ease;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder{
  color:rgba(255,255,255,.35);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus{
  border-color:var(--gold);
  background:rgba(255,255,255,.08);
}

/* Style native select dropdown indicator */
.quote-form select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23E8C465' d='M6 8 0 0h12z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:10px 7px;
  padding-right:38px;
}
.quote-form select option{
  background:#1A0A0B;
  color:#fff;
}

/* Date picker icon — invert so it's visible on dark */
.quote-form input[type="date"]::-webkit-calendar-picker-indicator{
  filter:invert(1) sepia(1) saturate(3) hue-rotate(5deg);
  opacity:.7;
  cursor:pointer;
}

/* File input */
.quote-form input[type="file"]{
  width:100%;
  padding:10px 12px;
  font-size:13px;
  color:rgba(255,255,255,.85);
  background:rgba(255,255,255,.04);
  border:1px dashed rgba(232,196,101,.35);
  border-radius:10px;
  cursor:pointer;
  transition:border-color .25s ease, background .25s ease;
}
.quote-form input[type="file"]:hover{
  border-color:var(--gold);
  background:rgba(255,255,255,.07);
}
.quote-form input[type="file"]::file-selector-button{
  margin-right:12px;
  padding:6px 12px;
  font:inherit;
  font-size:11px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--dark);
  background:var(--gold);
  border:none;
  border-radius:999px;
  cursor:pointer;
  transition:background .25s ease;
}
.quote-form input[type="file"]::file-selector-button:hover{
  background:var(--gold-bright);
}

.form-hint{
  font-size:11px;
  color:rgba(255,255,255,.45);
  letter-spacing:.02em;
}

/* ---------- Radio chips ---------- */
.radio-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.radio-chip{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:10px 20px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(232,196,101,.25);
  border-radius:999px;
  cursor:pointer;
  transition:all .25s ease;
  user-select:none;
}
.radio-chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.radio-chip span{
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.85);
  letter-spacing:.01em;
  line-height:1;
}
.radio-chip:hover{
  border-color:var(--gold);
  background:rgba(232,196,101,.08);
}
.radio-chip:has(input:checked){
  background:var(--gold);
  border-color:var(--gold);
}
.radio-chip:has(input:checked) span{
  color:var(--dark);
  font-weight:600;
}
/* Fallback: .is-checked toggled by JS for browsers w/o :has */
.radio-chip.is-checked{
  background:var(--gold);
  border-color:var(--gold);
}
.radio-chip.is-checked span{
  color:var(--dark);
  font-weight:600;
}

/* ---------- Actions ---------- */
.quote-form-actions{
  margin-top:28px;
  display:flex;
  justify-content:center;
}
.quote-submit{
  min-width:220px;
}
.quote-submit:disabled{
  opacity:.65;
  cursor:wait;
  transform:none;
}
.quote-form.is-loading .quote-submit{
  opacity:.7;
  cursor:wait;
}

/* ---------- Status messages ---------- */
.quote-form-status{
  margin-top:16px;
  padding:12px 16px;
  border-radius:10px;
  font-size:13px;
  line-height:1.5;
  text-align:center;
}
.quote-form-status[hidden]{ display:none; }
.quote-form-status.is-error{
  background:rgba(220,80,80,.12);
  border:1px solid rgba(220,80,80,.4);
  color:#ffbdbd;
}
.quote-form-status.is-success{
  background:rgba(232,196,101,.1);
  border:1px solid rgba(232,196,101,.35);
  color:var(--gold-bright);
}

/* ---------- Success view ---------- */
.quote-form-success{
  text-align:center;
  padding:20px 10px 10px;
  animation:qfFadeIn .4s ease;
}
.quote-form-success[hidden]{ display:none; }

.success-bot{
  width:160px;
  height:160px;
  margin:0 auto 24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.success-bot-skeleton{
  width:100%;
  height:100%;
  border-radius:24px;
  background:linear-gradient(
    100deg,
    rgba(232,196,101,.08) 0%,
    rgba(232,196,101,.22) 40%,
    rgba(255,233,171,.45) 50%,
    rgba(232,196,101,.22) 60%,
    rgba(232,196,101,.08) 100%
  );
  background-size:300% 100%;
  animation:qfShimmer 2.2s linear infinite;
  border:1px solid rgba(232,196,101,.2);
}
.success-title{
  font-family:'Oswald', sans-serif;
  font-size:clamp(22px, 2.6vw, 28px);
  font-weight:600;
  margin:0 0 10px;
  background:var(--gold-shine);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.success-msg{
  margin:0 0 28px;
  font-size:15px;
  line-height:1.55;
  color:rgba(255,255,255,.78);
}
.success-close{
  min-width:180px;
}

/* ---------- Animations ---------- */
@keyframes qfShimmer{
  0%{ background-position:120% 0; }
  100%{ background-position:-120% 0; }
}
@keyframes qfFadeIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:none; }
}

/* ---------- Responsive ---------- */
@media (max-width:880px){
  .quote-form-layout{ grid-template-columns:1fr; gap:32px; }
  .quote-form-aside{ gap:20px; }
}

@media (max-width:720px){
  .quote-form-grid{ grid-template-columns:1fr; gap:14px; }
  .quote-form-panel{ padding:32px 24px; border-radius:16px; }
  .quote-form-head{ margin-bottom:22px; }
}

@media (max-width:480px){
  .quote-form-modal{ padding:0; }
  .quote-form-panel{
    width:100%;
    height:100vh;
    max-height:100vh;
    max-width:100%;
    border-radius:0;
    border:none;
    padding:64px 18px 28px;
  }
  .quote-form-close{ top:12px; right:12px; }
  .success-bot{ width:130px; height:130px; }
  .quote-submit{ width:100%; min-width:0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .quote-form-modal,
  .quote-form-panel,
  .success-bot-skeleton,
  .quote-form-close,
  .quote-submit,
  .success-close{
    transition:none !important;
    animation:none !important;
  }
}

/* ============================================================
   INLINE VARIANT — embedded "Báo giá" section (glass on dark band)
   ============================================================ */
.quote-form-modal--inline{
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  display:block !important;
  padding:clamp(64px,8vw,104px) clamp(20px,3.5vw,64px);
  background:
    linear-gradient(180deg, rgba(14,6,6,.78) 0%, rgba(5,2,2,.86) 55%, rgba(18,7,8,.9) 100%),
    url("../images/banner-bg-03.png") center/cover no-repeat;
  border-top:1px solid rgba(232,196,101,.14);
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transition:none !important;
  overflow:hidden;
}
.quote-form-modal--inline::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(139,26,31,.28) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(232,196,101,.1) 0%, transparent 55%);
  pointer-events:none;
}
.quote-form-modal--inline::after{
  content:'';
  position:absolute;
  inset:0;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  pointer-events:none;
}
.quote-form-modal--inline[hidden]{ display:block !important; }
.quote-form-modal--inline .quote-form-backdrop{ display:none; }
.quote-form-modal--inline .quote-form-panel{
  position:relative;
  z-index:1;
  transform:none !important;
  opacity:1 !important;
  max-height:none;
  width:100%;
  /* width cap → assets/css/utils/layout.css (.container aliases
   * `.quote-form-modal--inline .quote-form-panel`). */
  padding:clamp(36px,5vw,52px) clamp(32px,4vw,48px);
  border-radius:24px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(28px) saturate(1.2);
  -webkit-backdrop-filter:blur(28px) saturate(1.2);
  border:1px solid rgba(232,196,101,.24);
}
.quote-form-modal--inline .quote-form-close{ display:none; }
.quote-form-modal--inline .quote-form-head .section-title,
.quote-form-modal--inline .quote-form-head .quote-form-sub,
.quote-form-modal--inline .form-field label,
.quote-form-modal--inline .form-hint{
  color:#fff;
}
.quote-form-modal--inline .quote-form-head .section-title em{
  background:var(--gold-shine);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.quote-form-modal--inline .quote-form-sub{
  color:rgba(255,255,255,.78);
}
.quote-form-modal--inline .form-field label{
  color:rgba(255,255,255,.72);
}
.quote-form-modal--inline .quote-form input[type="text"],
.quote-form-modal--inline .quote-form input[type="tel"],
.quote-form-modal--inline .quote-form input[type="email"],
.quote-form-modal--inline .quote-form input[type="date"],
.quote-form-modal--inline .quote-form input[type="number"],
.quote-form-modal--inline .quote-form select,
.quote-form-modal--inline .quote-form textarea{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(232,196,101,.28);
}
.quote-form-modal--inline .quote-form input:focus,
.quote-form-modal--inline .quote-form select:focus,
.quote-form-modal--inline .quote-form textarea:focus{
  background:rgba(255,255,255,.12);
  border-color:rgba(232,196,101,.55);
}
.quote-form-modal--inline .radio-chip span{
  color:rgba(255,255,255,.82);
  background:rgba(255,255,255,.06);
  border-color:rgba(232,196,101,.22);
}
.quote-form-modal--inline .radio-chip input:checked + span,
.quote-form-modal--inline .radio-chip:has(input:checked) span{
  color:var(--dark, #0E0606);
  background:var(--gold, #E8C465);
  border-color:var(--gold, #E8C465);
}

/* ============================================================
   INLINE — distinctive full-width "Báo giá" section
   No max-width: glass panel spans the band. Fields flow into
   2–3 columns; brand rail is split off by a gold divider.
   ============================================================ */

/* Gold shimmer accent bar pinned to the top edge of the glass panel */
.quote-form-modal--inline .quote-form-panel{
  overflow:hidden;
}

/* Form fields laid out in an even 2-column (50/50) grid.
   .full fields (Loại sự kiện, Quy mô radio, Họ tên) span the whole row;
   the rest pair up half / half. */
.quote-form-modal--inline .quote-form-grid{
  grid-template-columns:1fr 1fr;
  gap:18px 22px;
}

/* Wide screens: even 50/50 split, divided by a gold line */
@media (min-width:881px){
  .quote-form-modal--inline .quote-form-layout{
    grid-template-columns:1fr 1fr;
    gap:clamp(40px, 5vw, 80px);
    align-items:center;
  }
  .quote-form-modal--inline .quote-form-aside{
    padding-right:clamp(28px, 3vw, 56px);
    border-right:1px solid rgba(232,196,101,.2);
  }
  /* Oversized brand statement for a more striking, unique section */
  .quote-form-modal--inline .quote-form-aside .section-title{
    font-size:clamp(34px, 3.8vw, 54px);
    line-height:1.08;
  }
  .quote-form-modal--inline .quote-form-aside .quote-form-sub{
    font-size:15px;
  }
  /* Submit button stretches across the wide form for balance */
  .quote-form-modal--inline .quote-form-actions{
    justify-content:stretch;
  }
  .quote-form-modal--inline .quote-submit{
    width:100%;
  }
}

