/* ==========================================================================
   Contact Support page
   Desktop 1440: editorial intro (469) + progress rail (70) + workspace (2255)
   Mobile 390: hero (361) + step nav (39) + quick help (644) + form sections
   ========================================================================== */
.page-contact {
  --cs-accent: #e8642c;
  --cs-line: #e0d7cd;
  --cs-text: #61554c;
  --cs-soft: #8c7c70;
  background: #f9f6ee;
}

/* --------------------------------------------------------------------------
   Editorial intro
   -------------------------------------------------------------------------- */
.cs-intro { display: flex; justify-content: space-between; align-items: center; padding: 80px var(--gutter) 60px; overflow: hidden; }
.cs-intro__left { flex: 0 1 640px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cs-intro__kicker { font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 17px; letter-spacing: 1.5px; color: var(--cs-accent); }
.cs-intro__title { font-family: var(--f-head); font-weight: 700; font-size: 80px; line-height: .9; letter-spacing: -2px; color: var(--ink); }
.cs-intro__text { font-family: var(--f-body); font-size: 16px; line-height: 26px; color: var(--cs-text); }
.cs-intro__help { display: flex; flex-direction: column; gap: 8px; }
.cs-intro__note { font-family: var(--f-body); font-size: 14px; line-height: 18px; color: var(--cs-soft); }
.cs-intro__link { font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--cs-accent); align-self: flex-start; }
.cs-intro__deco { flex: 0 0 auto; width: 560px; height: 320px; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; user-select: none; }
.cs-intro__deco span { font-family: var(--f-head); font-weight: 700; font-size: 180px; line-height: normal; letter-spacing: -5px; color: var(--ink); opacity: .03; }

/* --------------------------------------------------------------------------
   Progress rail
   -------------------------------------------------------------------------- */
.cs-rail {
  height: 70px; padding: 23px var(--gutter); background: #f9f6ee;
  border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line);
  display: flex; justify-content: space-between; align-items: center;
}
.cs-step { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.cs-step__dot { display: none; width: 6px; height: 6px; border-radius: 3px; background: #6b5e55; opacity: .3; }
.cs-step__num { font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 22px; color: var(--cs-accent); }
.cs-step__txt { font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--ink); }
.cs-rail__line { position: relative; width: 120px; height: 0; }
.cs-rail__line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--cs-line); }

/* --------------------------------------------------------------------------
   Workspace
   -------------------------------------------------------------------------- */
.cs-work { display: flex; align-items: flex-start; gap: 64px; padding: 64px 32px 80px var(--gutter); }
.cs-form { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.cs-required { font-family: var(--f-body); font-size: 13px; line-height: 17px; color: var(--cs-soft); }
.cs-required .req { font-weight: 700; color: var(--cs-accent); }

.cs-sep { position: relative; height: 0; margin: 0; border: 0; }
.cs-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--cs-line); }

/* Chapter */
.cs-chapter { display: flex; flex-direction: column; gap: 24px; }
.cs-chapter__head { position: relative; min-height: 65px; padding-left: 60px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.cs-chapter__num { position: absolute; left: 0; top: 0; font-family: var(--f-head); font-weight: 700; font-size: 48px; line-height: 65px; color: var(--ink); opacity: .1; }
.cs-chapter__title { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 27px; letter-spacing: .5px; color: var(--ink); }
.cs-chapter__sub { font-family: var(--f-body); font-size: 13px; line-height: 17px; color: var(--cs-text); }

/* Fields (override base .field/.input to the page design) */
.cs-label { display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 17px; letter-spacing: .5px; color: var(--ink); }
.cs-label--tight { gap: 4px; letter-spacing: 0; }
.cs-label .req { color: var(--cs-accent); letter-spacing: 0; }
.cs-opt { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border-radius: 3px; background: #f0e9dc; font-family: var(--f-body); font-weight: 700; font-size: 9px; line-height: 12px; letter-spacing: 0; color: var(--cs-text); }
.cs-input { height: 48px; padding: 0 16px; background: var(--white); border: 1px solid var(--cs-line); border-radius: 6px; }
.cs-input input { font-size: 14px; }
.cs-input input::placeholder, .cs-input textarea::placeholder { color: var(--cs-soft); }
.cs-input--area { height: 160px; padding: 16px; align-items: flex-start; }
.cs-input--area textarea { flex: 1 1 auto; width: 100%; height: 100%; resize: none; font-family: var(--f-body); font-size: 14px; line-height: 18px; color: var(--ink); background: transparent; }
.cs-hint { font-family: var(--f-body); font-size: 12px; line-height: 16px; color: var(--cs-text); }
.cs-field .field__error { font-family: var(--f-body); font-weight: 500; font-size: 13px; line-height: 17px; color: var(--cs-accent); }
.cs-field.has-error .cs-input { border-color: var(--cs-accent); }
.cs-row { display: flex; align-items: flex-start; gap: 16px; }
.cs-row > .cs-field { flex: 1 1 0; min-width: 0; }

/* Topic select */
.cs-select {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; height: 48px; padding: 0 16px;
  background: var(--white); border: 1.5px solid var(--orange); border-radius: 6px;
  font-family: var(--f-body); font-size: 14px; line-height: 18px; color: var(--ink);
}
.cs-select.is-open { border-radius: 6px 6px 0 0; }
.cs-select__value { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-select__chev { flex: 0 0 auto; color: var(--ink); }
.cs-options { background: var(--white); box-shadow: inset 1px 0 0 var(--cs-line), inset -1px 0 0 var(--cs-line), inset 0 -1px 0 var(--cs-line); border-radius: 0 0 6px 6px; overflow: hidden; outline: none; }
.cs-option {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  font-family: var(--f-body); font-size: 14px; line-height: 18px; color: var(--ink); cursor: pointer; outline: none;
}
.cs-option:hover, .cs-option.is-focused { background: #faf7f2; }
.cs-option.is-selected { background: #fef5ef; color: var(--orange); font-weight: 700; }
.cs-option__txt { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-option__check { display: none; flex: 0 0 auto; width: 14px; height: 14px; color: var(--cs-accent); }
.cs-option.is-selected .cs-option__check { display: block; }

/* Attachment */
.cs-upload {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 16px;
  background: #f9f6ee; border: 1px dashed var(--cs-line); border-radius: 6px; cursor: pointer; color: var(--ink);
}
.cs-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.cs-upload:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.cs-upload__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.cs-upload__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-upload__title { font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--ink); }
.cs-upload__desc { font-family: var(--f-body); font-size: 11px; line-height: 14px; color: var(--cs-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Check + send */
.cs-final { display: flex; flex-direction: column; gap: 20px; }
.cs-check__card { display: flex; flex-direction: column; gap: 4px; }
.cs-check__title { font-family: var(--f-body); font-weight: 700; font-size: 12px; line-height: 16px; color: var(--cs-text); }
.cs-check__text { font-family: var(--f-body); font-size: 12px; line-height: 16px; color: var(--cs-soft); }
.cs-form-error { font-family: var(--f-body); font-weight: 500; font-size: 13px; line-height: 17px; color: var(--cs-accent); }
.cs-send {
  display: inline-flex; justify-content: center; align-items: center; width: 220px; height: 46px; border-radius: 800px;
  background: var(--cs-accent); color: var(--white); font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: .5px;
  white-space: nowrap; transition: filter .15s ease;
}
.cs-send:hover { filter: brightness(.95); }
.cs-send:disabled { opacity: .6; cursor: default; }

/* Success */
.cs-success-wrap { display: flex; flex-direction: column; gap: 48px; }
.cs-success { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #e3f3ec; box-shadow: inset 0 0 0 1px #1b5e3a; border-radius: 8px; color: #1b5e3a; outline: none; }
.cs-success__head { display: flex; align-items: center; gap: 12px; }
.cs-success__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.cs-success__title { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 27px; }
.cs-success__text { font-family: var(--f-body); font-size: 14px; line-height: 21px; }
.cs-success__link { align-self: flex-start; font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 17px; }

/* Sidebar */
.cs-side {
  position: relative; flex: 0 0 448px; width: 448px; overflow: hidden;
  padding: 32px; background: #d1eaf0; border-radius: 16px; display: flex; flex-direction: column; gap: 32px;
}
.cs-side__wm {
  position: absolute; right: 0; top: -20px; width: 223px; height: 324px; text-align: right; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--f-head); font-weight: 700; font-size: 120px; line-height: normal; letter-spacing: -4px; color: var(--ink); opacity: .04;
}
.cs-side__head { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cs-side__kicker { font-family: var(--f-body); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; color: var(--ink); opacity: .6; }
.cs-side__title { font-family: var(--f-head); font-weight: 700; font-size: 32px; line-height: 43px; color: var(--ink); }
.cs-side__card { display: contents; }
.cs-side__block { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cs-side__h { font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 22px; letter-spacing: .5px; color: var(--ink); }
.cs-side__p { font-family: var(--f-body); font-size: 13px; line-height: 20px; color: var(--cs-text); }
.cs-side__link { align-self: flex-start; font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 17px; color: var(--cs-accent); }
.cs-side__email { font-family: var(--f-body); font-weight: 700; font-size: 13px; line-height: 17px; color: var(--ink); }
.cs-side__line { position: relative; height: 0; margin: 0; border: 0; }
.cs-side__line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--cs-line); opacity: .5; }
.cs-side__block--gh { padding: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--cs-accent); border-radius: 8px; }
.cs-side__badge { align-self: flex-start; display: inline-flex; padding: 4px 8px; border-radius: 4px; background: var(--cs-accent); color: var(--white); font-size: 11px; line-height: 15px; letter-spacing: .5px; text-transform: uppercase; }
.cs-side__gh { display: flex; flex-direction: column; gap: 2px; }
.cs-side__gh-name { font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 20px; color: var(--ink); }
.cs-side__gh-phone { align-self: flex-start; font-family: var(--f-head); font-weight: 700; font-size: 28px; line-height: 38px; color: var(--cs-accent); }
.cs-side__gh-note { font-family: var(--f-body); font-size: 11px; line-height: 14px; color: var(--cs-soft); }

/* Narrow desktop / tablet (768-1199): stack the sidebar under the form */
@media (min-width: 768px) and (max-width: 1199px) {
  .cs-intro__deco { display: none; }
  .cs-intro__left { flex: 1 1 auto; }
  .cs-intro__title { font-size: clamp(48px, 7vw, 80px); }
  .cs-work { flex-direction: column; align-items: stretch; padding-right: var(--gutter); }
  .cs-side { width: auto; flex: none; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
  .page-contact { --cs-accent: var(--orange); --cs-line: #e6dfd5; --cs-text: var(--muted); --cs-soft: var(--muted); background: var(--bg); }

  /* Hero */
  .cs-intro { position: relative; display: block; padding: 32px var(--mobile-gutter); background: #f9f6ee; }
  .cs-intro__left { display: flex; flex-direction: column; gap: 12px; }
  .cs-intro__kicker { font-family: var(--f-head); font-size: 13px; line-height: 18px; letter-spacing: 1px; }
  .cs-intro__title { font-size: 40px; line-height: 1.05; letter-spacing: 0; }
  .cs-intro__text { font-size: 15px; line-height: 23px; color: var(--muted); }
  .cs-intro__help { gap: 12px; }
  .cs-intro__note { line-height: 18px; color: var(--muted); }
  .cs-intro__link { font-family: var(--f-head); line-height: 19px; letter-spacing: .5px; }
  .cs-intro__deco { position: absolute; left: 338px; top: 219px; width: 52px; height: 142px; display: block; }
  .cs-intro__deco span { display: block; font-size: 120px; line-height: 142px; letter-spacing: 0; text-align: right; }

  /* Step navigation */
  .cs-rail { height: 39px; padding: 12px var(--mobile-gutter) 11px; background: var(--bg); border-top: 0; align-items: flex-start; }
  .cs-step { gap: 0; }
  .cs-step__dot { display: block; margin-right: 4px; }
  .cs-step__num, .cs-step__txt { font-family: var(--f-head); font-weight: 700; font-size: 11px; line-height: 15px; letter-spacing: .5px; color: var(--muted); opacity: .7; }
  .cs-step__num::after { content: "\00a0"; }
  .cs-step.is-active .cs-step__dot { background: var(--orange); opacity: 1; }
  .cs-step.is-active .cs-step__num, .cs-step.is-active .cs-step__txt { color: var(--orange); opacity: 1; }
  .cs-rail__line { display: none; }

  /* Workspace: sidebar first, then the form */
  .cs-work { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .cs-side { order: -1; flex: none; width: auto; padding: 16px; border-radius: 0; gap: 16px; overflow: visible; }
  .cs-side__wm { display: none; }
  .cs-side__kicker { font-family: var(--f-head); font-size: 20px; line-height: 27px; letter-spacing: .5px; opacity: 1; }
  .cs-side__title { font-size: 14px; line-height: 19px; letter-spacing: .5px; }
  .cs-side__card { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--white); border-radius: 12px; }
  .cs-side__block { gap: 6px; }
  .cs-side__h { font-size: 15px; line-height: 20px; }
  .cs-side__p { font-size: 14px; line-height: 20px; }
  .cs-side__link { font-family: var(--f-head); line-height: 18px; letter-spacing: .5px; }
  .cs-side__email a { display: block; }
  .cs-side__line::before { opacity: 1; }
  .cs-side__block--gh { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .cs-side__badge { align-self: auto; display: block; padding: 0; border-radius: 0; background: none; color: var(--ink); font-size: 15px; line-height: 20px; letter-spacing: .5px; }
  .cs-side__gh { gap: 6px; }
  .cs-side__gh-name { font-size: 14px; line-height: 19px; letter-spacing: .5px; }
  .cs-side__gh-phone { font-size: 24px; line-height: 32px; color: var(--ink); }
  .cs-side__gh-note { font-size: 13px; line-height: 17px; color: var(--muted); }

  /* Form */
  .cs-form { gap: 0; }
  .cs-required { padding: 24px var(--mobile-gutter) 8px; color: var(--muted); }
  .cs-required .req { font-weight: 400; }
  .cs-sep { display: none; }
  .cs-chapter { padding: 24px var(--mobile-gutter); gap: 20px; }
  #cs-enquiry { padding-top: 12px; }
  .cs-chapter__head { min-height: 0; padding-left: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 8px; align-items: center; }
  .cs-chapter__num { position: static; grid-row: 1; grid-column: 1; font-size: 32px; line-height: 43px; color: var(--orange); opacity: 1; }
  .cs-chapter__title { grid-row: 1; grid-column: 2; font-size: 22px; line-height: 30px; letter-spacing: 0; }
  .cs-chapter__sub { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--muted); }

  .cs-label, .cs-label--tight { gap: 4px; font-family: var(--f-head); font-size: 13px; line-height: 18px; letter-spacing: .5px; }
  .cs-label .cs-opt { margin-left: 4px; height: 17px; padding: 0 6px; border-radius: 4px; background: var(--sand); font-family: var(--f-head); font-size: 10px; line-height: 13px; letter-spacing: .5px; color: var(--muted); }
  .cs-input { padding: 0 12px; border-radius: 8px; }
  .cs-input input { font-size: 15px; }
  .cs-input input::placeholder, .cs-input textarea::placeholder { color: rgba(107, 94, 85, .6); }
  .cs-input--area { padding: 12px; }
  .cs-input--area textarea { font-size: 15px; line-height: 20px; }
  .cs-hint { color: var(--muted); }
  .cs-field .field__error { font-weight: 600; font-size: 12px; line-height: 16px; color: #dc2626; align-items: center; gap: 4px; }
  .cs-field.has-error .field__error { display: flex; }
  .cs-field .field__error::before {
    content: ""; flex: 0 0 auto; width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  }
  .cs-field.has-error .cs-input { border-color: #dc2626; }
  .cs-row { flex-direction: column; align-items: stretch; gap: 20px; }

  .cs-select { padding: 0 12px; border-width: 1px; border-radius: 8px; font-weight: 500; font-size: 15px; line-height: 20px; }
  .cs-select.is-open { border-radius: 8px; }
  .cs-select__chev { color: var(--orange); }
  .cs-options { margin-top: 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #dcd0c0, 0 4px 12px rgba(28, 20, 14, .12); }
  .cs-option { height: 44px; box-shadow: inset 0 -1px 0 #e6dfd5; font-weight: 500; }
  .cs-option.is-selected { background: rgba(242, 92, 5, .06); }
  .cs-option__check { width: 16px; height: 16px; color: var(--orange); }

  .cs-upload {
    display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 6px; row-gap: 8px;
    height: 99px; padding: 20px; background: var(--white); border: 1px dashed var(--muted); border-radius: 8px;
  }
  .cs-upload__icon { grid-row: 1; grid-column: 1; width: 16px; height: 16px; }
  .cs-upload__body { display: contents; }
  .cs-upload__title { grid-row: 1; grid-column: 2; font-family: var(--f-head); line-height: 19px; letter-spacing: .5px; }
  .cs-upload__desc { grid-row: 2; grid-column: 1 / -1; font-size: 12px; line-height: 16px; text-align: center; white-space: normal; color: var(--muted); }

  .cs-final { gap: 0; }
  .cs-check { padding: 0 var(--mobile-gutter) 12px; }
  .cs-check__card { gap: 8px; padding: 16px; background: var(--sand); border-radius: 8px; }
  .cs-check__title { font-family: var(--f-head); font-size: 14px; line-height: 19px; letter-spacing: .5px; color: var(--ink); }
  .cs-check__text { font-size: 13px; line-height: 18px; color: var(--muted); }
  .cs-form-error { padding: 0 var(--mobile-gutter) 12px; }
  .cs-cta { padding: 0 var(--mobile-gutter) 32px; }
  .cs-send { width: 100%; height: 48px; border-radius: 700px; font-family: var(--f-head); font-size: 15px; line-height: 20px; }

  .cs-success-wrap { padding: 0 var(--mobile-gutter) 32px; gap: 0; }
  .cs-success { gap: 12px; padding: 20px; background: #ecfdf5; box-shadow: inset 0 0 0 1px #10b981; border-radius: 12px; color: var(--ink); }
  .cs-success__head { gap: 8px; }
  .cs-success__icon { width: 24px; height: 24px; color: #10b981; }
  .cs-success__title { font-size: 22px; line-height: 30px; letter-spacing: .5px; }
  .cs-success__link { font-family: var(--f-head); font-size: 14px; line-height: 19px; letter-spacing: .5px; color: var(--orange); }
}
