/* ==========================================================================
   Contact (Views/Home/Contact.cshtml) - Blush & Berry, light only.
   Loaded after the shared base (_BrandPageHead: landing.css, landing-pink.css,
   brand-page.css). Rules are `.ct .x` so they outrank mypariva.css.
   Behaviour (validation, submit states, reference) lives in wwwroot/js/contact/.
   ========================================================================== */

.ct .ct-label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-madder); }
.ct .ct-label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.ct a:not(.ct-method):not(.ct-help__row) { color: var(--lp-madder); }

/* ==========================================================================
   HERO (compact)
   ========================================================================== */
.ct .ct-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, var(--lp-paper-deep) 0%, var(--lp-paper) 100%); }
.ct .ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ct .ct-hero h1 { margin-top: 16px; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.034em; }
.ct .ct-hero h1 em { color: var(--lp-madder); font-weight: 400; }
.ct .ct-hero__lede { margin-top: 16px; font-size: 17px; max-width: 44ch; }
.ct .ct-hero__lede a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.ct .ct-help { display: flex; flex-direction: column; border-top: 1px solid var(--lp-line-strong); }
.ct .ct-help__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 4px; border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none; transition: background-color .3s var(--lp-ease), padding .3s var(--lp-ease); }
.ct .ct-help__row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct .ct-help__row b { font-family: var(--lp-serif); font-size: 18px; font-weight: 500; color: var(--lp-ink); }
.ct .ct-help__row b + span { font-size: 14px; color: var(--lp-ink-soft); }
.ct .ct-help__go { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--lp-madder); white-space: nowrap; }
.ct .ct-help__go svg { transition: transform .3s var(--lp-ease); }
.ct .ct-help__row:hover { background: rgba(var(--lp-madder-rgb), .04); padding-left: 10px; }
.ct .ct-help__row:hover .ct-help__go svg { transform: translateX(3px); }
@media (max-width: 960px) { .ct .ct-hero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  /* Small screens: the help topics shrink to a swipeable row of titles so the form stays near the top. */
  .ct .ct-help { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; border-top: 0; padding-bottom: 4px; }
  .ct .ct-help::-webkit-scrollbar { display: none; }
  .ct .ct-help__row { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--lp-line-strong); border-radius: 999px; background: var(--lp-surface); }
  .ct .ct-help__row:hover { padding-left: 14px; }
  .ct .ct-help__row b { font-family: var(--lp-sans); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .ct .ct-help__row b + span, .ct .ct-help__go { display: none; }
}

/* ==========================================================================
   MAIN: form (primary) + contact information
   ========================================================================== */
.ct .ct-main { padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 112px); }
.ct .ct-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ct .ct-ways { grid-column: 1; grid-row: 1; }
.ct .ct-panel { grid-column: 2; grid-row: 1; scroll-margin-top: calc(var(--mp-nav-h, 96px) + 16px); padding: clamp(22px, 3.2vw, 40px); border-radius: 22px; background: var(--lp-surface); border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow-paper); }
.ct .ct-panel__title { font-size: clamp(26px, 2.6vw, 34px); }
.ct .ct-panel__intro { margin-top: 8px; font-size: 15.5px; }

/* Contact information */
.ct .ct-ways__title { font-size: clamp(24px, 2.2vw, 30px); padding-bottom: 14px; border-bottom: 2px solid var(--lp-ink); }
.ct .ct-methods { display: flex; flex-direction: column; }
.ct .ct-methods > li { border-bottom: 1px solid var(--lp-line); }
.ct .ct-method { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 6px; text-decoration: none; color: var(--lp-ink); border-radius: 12px; transition: background-color .3s var(--lp-ease); }
a.ct-method:hover { background: rgba(var(--lp-madder-rgb), .05); }
.ct .ct-method__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--lp-madder-rgb), .08); color: var(--lp-madder); }
.ct .ct-method__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct .ct-method__k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-soft); }
.ct .ct-method__v { font-size: 17px; font-weight: 600; color: var(--lp-ink); overflow-wrap: anywhere; }
a.ct-method .ct-method__v { text-decoration: underline; text-decoration-color: rgba(var(--lp-madder-rgb), .35); text-underline-offset: 4px; }
a.ct-method:hover .ct-method__v { color: var(--lp-madder); }
.ct .ct-method__addr { font-style: normal; font-weight: 500; font-size: 15.5px; line-height: 1.55; }
.ct .ct-method__d { margin-top: 2px; font-size: 13.5px; color: var(--lp-ink-soft); }
.ct .ct-method__go { align-self: center; color: var(--lp-madder); transition: transform .3s var(--lp-ease); }
a.ct-method:hover .ct-method__go { transform: translateX(3px); }
.ct .ct-hours { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: var(--lp-paper-deep); color: var(--lp-ink); }
.ct .ct-hours svg { flex: 0 0 auto; margin-top: 2px; color: var(--lp-madder); }
.ct .ct-hours p { font-size: 15px; color: var(--lp-ink); }
.ct .ct-hours strong { font-weight: 700; }
.ct .ct-hours__note { margin-top: 6px; font-size: 13.5px !important; color: var(--lp-ink-soft) !important; }

/* ---------- Form ---------- */
.ct .ct-form { margin-top: 24px; }
.ct .ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ct .ct-field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.ct .ct-field label:not(.ct-check) { font-size: 14px; font-weight: 600; color: var(--lp-ink); margin-bottom: 8px; }
.ct .ct-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ct .ct-field input[type="text"], .ct .ct-field input[type="email"], .ct .ct-field select, .ct .ct-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lp-line-strong);
  background: var(--lp-paper); color: var(--lp-ink); font-size: 16px; line-height: 1.4; box-shadow: none;
  transition: border-color .3s var(--lp-ease), box-shadow .3s var(--lp-ease), background-color .3s var(--lp-ease);
}
.ct .ct-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.ct .ct-field input:hover, .ct .ct-field select:hover, .ct .ct-field textarea:hover { border-color: var(--lp-ink-soft); }
.ct .ct-field input:focus, .ct .ct-field select:focus, .ct .ct-field textarea:focus { outline: none; background: var(--lp-surface); border-color: var(--lp-madder); box-shadow: 0 0 0 4px rgba(var(--lp-madder-rgb), .14); }
.ct .ct-select { position: relative; }
.ct .ct-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--lp-ink-soft); border-bottom: 2px solid var(--lp-ink-soft); transform: rotate(45deg); pointer-events: none; }
.ct .ct-select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.ct .ct-select select:invalid, .ct .ct-select select.is-placeholder { color: var(--lp-ink-faint); }
.ct .ct-hint { margin-top: 6px; font-size: 13px !important; color: var(--lp-ink-faint) !important; }
.ct .ct-count { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--lp-ink-faint); }
.ct .ct-count.is-short { color: var(--lp-turmeric-ink); }
.ct .ct-guide p { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--lp-dusk-rgb), .07); font-size: 13.5px !important; color: var(--lp-ink) !important; }
.ct .ct-guide a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Errors: an icon and words, not colour alone */
.ct .ct-error { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px !important; font-weight: 600; color: var(--lp-madder-deep) !important; }
.ct .ct-error::before { content: "!"; display: inline-grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: var(--lp-madder); color: var(--lp-surface); font-size: 11px; font-weight: 800; }
.ct .ct-field.is-invalid .ct-error { display: flex; }
.ct .ct-field.is-invalid .ct-hint { display: none; }
.ct .ct-field.is-invalid input, .ct .ct-field.is-invalid select, .ct .ct-field.is-invalid textarea { border-color: var(--lp-madder); border-width: 1.5px; background: rgba(var(--lp-madder-rgb), .03); }
.ct .ct-field.is-valid input, .ct .ct-field.is-valid select, .ct .ct-field.is-valid textarea { border-color: rgba(var(--lp-neem-rgb), .6); }

/* Consent checkbox */
.ct .ct-check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.55; color: var(--lp-ink-soft); }
.ct .ct-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.ct .ct-check__box { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--lp-line-strong); background: var(--lp-paper); color: transparent; transition: background-color .25s var(--lp-ease), border-color .25s var(--lp-ease), color .25s var(--lp-ease); }
.ct .ct-check:hover .ct-check__box { border-color: var(--lp-madder); }
.ct .ct-check input:checked + .ct-check__box { background: var(--lp-madder); border-color: var(--lp-madder); color: var(--lp-surface); }
.ct .ct-check input:focus-visible + .ct-check__box { outline: 2px solid var(--lp-madder); outline-offset: 3px; }
.ct .ct-field.is-invalid .ct-check__box { border-color: var(--lp-madder); }
.ct .ct-check__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Submit */
.ct .ct-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 6px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--lp-action); color: var(--lp-action-text); font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 24px -16px rgba(var(--lp-madder-rgb), .9); transition: background-color .3s var(--lp-ease), transform .2s var(--lp-ease), box-shadow .3s var(--lp-ease); }
.ct .ct-submit:hover:not(:disabled) { background: var(--lp-action-hover); }
.ct .ct-submit:hover:not(:disabled) .ct-submit__arrow { transform: translateX(4px); }
.ct .ct-submit:active:not(:disabled) { transform: translateY(1px); }
.ct .ct-submit:focus-visible { outline: 2px solid var(--lp-ink); outline-offset: 3px; }
.ct .ct-submit:disabled { cursor: progress; opacity: .85; }
.ct .ct-submit__arrow { transition: transform .3s var(--lp-ease); }
.ct .ct-submit__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--lp-surface-rgb), .4); border-top-color: var(--lp-surface); animation: ctSpin .8s linear infinite; }
.ct .ct-submit[aria-busy="true"] .ct-submit__spinner { display: inline-block; }
.ct .ct-submit[aria-busy="true"] .ct-submit__arrow { display: none; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* Server failure */
.ct .ct-alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--lp-madder-rgb), .35); background: rgba(var(--lp-madder-rgb), .06); color: var(--lp-madder-deep); }
.ct .ct-alert svg { flex: 0 0 auto; margin-top: 2px; }
.ct .ct-alert__msg { font-weight: 600; color: var(--lp-ink) !important; }
.ct .ct-alert__next { margin-top: 4px; font-size: 14px !important; }

/* Success */
.ct .ct-success { text-align: left; }
.ct .ct-success:focus { outline: none; }
.ct .ct-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lp-neem); color: var(--lp-surface); }
.ct .ct-success__title { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px); }
.ct .ct-success__text { margin-top: 10px; font-size: 16.5px; max-width: 48ch; }
.ct .ct-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--lp-paper-deep); border: 1px dashed var(--lp-line-strong); }
.ct .ct-ref__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-soft); }
.ct .ct-ref__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .04em; color: var(--lp-ink); }
.ct .ct-ref__copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--lp-line-strong); border-radius: 10px; background: var(--lp-surface); font-size: 13.5px; font-weight: 600; color: var(--lp-ink); cursor: pointer; }
.ct .ct-ref__copy:hover { border-color: var(--lp-madder); color: var(--lp-madder); }
.ct .ct-link-btn { margin-top: 18px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--lp-madder); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 900px) {
  /* Small screens: the form (main task) first, other ways to reach us right after. */
  .ct .ct-main__grid { grid-template-columns: minmax(0, 1fr); }
  .ct .ct-panel, .ct .ct-ways { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .ct .ct-row { grid-template-columns: 1fr; }
  .ct .ct-panel { padding: 20px 16px; border-radius: 18px; }
  .ct .ct-ref__copy { margin-left: 0; }
}
