/* ============================================================
   S.T Contracts Ltd - Contact Page Stylesheet
   Hero-split layout: intro/contact info (left) + form card (right).
   Form (.st-contact-*) classes preserved so markup stays stable.
   Loading overlay centres on the form card on all devices.
   ============================================================ */

/* ---- Design tokens -------------------------------------- */
:root {
    --st-orange:       #F28823;
    --st-orange-hover: #d8731a;
    --st-orange-deep:  #c4640f;
    --st-orange-soft:  rgba(242,136,35,.10);

    --st-charcoal:   #23282d;

    --st-ink:    #23282d;
    --st-body:   #4a5159;
    --st-muted:  #828a93;
    --st-line:   #e7e9ec;

    --st-surface:     #ffffff;
    --st-surface-alt: #f5f6f8;

    --st-container: 1240px;
    --st-pad:       clamp(1.1rem, 4vw, 1.75rem);

    --st-radius-sm: 8px;
    --st-radius:    14px;
    --st-radius-lg: 20px;
    --st-pill:      999px;

    --st-shadow-sm: 0 2px 12px rgba(20,26,32,.06);
    --st-shadow:    0 14px 40px rgba(20,26,32,.10);
    --st-shadow-lg: 0 30px 70px rgba(10,14,18,.35);

    --st-fast: .2s ease;
    --st-ease: .35s cubic-bezier(.2,.7,.3,1);

    --st-fs-lead: clamp(1.02rem, .96rem + .35vw, 1.15rem);
}

* { box-sizing: border-box; }

.st-contracts-contact-container {
    max-width: var(--st-container);
    margin-inline: auto;
    padding-inline: var(--st-pad);
}

/* ============================================================
   HERO (dark) - holds intro (left) + form (right)
   ============================================================ */
.st-contracts-contact-hero {
    position: relative;
    background: var(--st-charcoal);
    border-top: 3px solid var(--st-orange);
    padding: clamp(2.75rem, 5vw, 4.5rem) 0;
    font-family: 'Mulish', sans-serif;
    overflow: hidden;
}
.st-contracts-contact-hero::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(242,136,35,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(242,136,35,.10) 0%, transparent 50%);
}
.st-contracts-contact-hero .st-contracts-contact-container { position: relative; z-index: 1; }

.st-contracts-contact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* ---- Left: intro + contact list ------------------------- */
.st-contracts-contact-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: #fcc78a; margin: 0 0 .8rem;
}
.st-contracts-contact-hero-eyebrow::before {
    content: ''; width: 28px; height: 2px; background: var(--st-orange); border-radius: 2px;
}
.st-contracts-contact-hero-title {
    font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
    font-weight: 800; color: #fff; margin: 0; letter-spacing: -.02em; line-height: 1.08;
}
.st-contracts-contact-hero-sub {
    font-size: var(--st-fs-lead); color: rgba(255,255,255,.74);
    margin: 1rem 0 0; max-width: 46ch; line-height: 1.6;
}

.st-contracts-contact-hero-list {
    list-style: none; margin: 2rem 0 0; padding: 0;
    display: flex; flex-direction: column; gap: .9rem;
}
.st-contracts-contact-hero-list li { margin: 0; }
.st-contracts-contact-hero-list li > a,
.st-contracts-contact-hero-list li > span.st-contracts-contact-hero-list-icon {
    /* base row is flex via the wrapper below */
}
.st-contracts-contact-hero-list li a,
.st-contracts-contact-hero-list li {
    color: #fff; text-decoration: none;
}
.st-contracts-contact-hero-list li a,
.st-contracts-contact-hero-list li:not(:has(a)) {
    display: flex; align-items: center; gap: .9rem;
}
.st-contracts-contact-hero-list-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--st-radius);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--st-orange);
    font-size: 1.05rem;
    transition: background var(--st-ease), color var(--st-ease);
}
.st-contracts-contact-hero-list li a:hover .st-contracts-contact-hero-list-icon {
    background: var(--st-orange); color: #fff;
}
.st-contracts-contact-hero-list-text { display: flex; flex-direction: column; gap: .1rem; line-height: 1.35; }
.st-contracts-contact-hero-list-text strong { font-size: 1rem; font-weight: 800; color: #fff; }
.st-contracts-contact-hero-list-text em { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ============================================================
   FORM CARD (right) - fresh elevated white card
   ============================================================ */
.st-contracts-contact-hero-form { position: relative; }

.st-contact-section { background: none; padding: 0; position: relative; }
.st-contact-section-inner { max-width: none; margin: 0; position: relative; }

/* Hidden built-ins (kept in case markup renders them) */
.st-contact-intro { display: none; }
.st-contact-alt { display: none; }
.st-contact-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(242,136,35,.15); color: #fff;
    padding: .6rem 1.1rem; border-radius: var(--st-pill);
    font-size: .85rem; font-weight: 700; margin-bottom: 1.1rem;
}
.st-contact-badge i { color: var(--st-orange); }

/* Honeypot - visually removed, still in the DOM for bots */
.st-contact-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto; width: 1px; height: 1px;
    overflow: hidden;
}

.st-contact-form-card {
    position: relative;
    background: var(--st-surface);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--st-radius-lg);
    padding: clamp(2rem, 3.2vw, 3rem);
    box-shadow: var(--st-shadow-lg);
    overflow: hidden;
}
/* subtle orange top accent for the "new feel" */
.st-contact-form-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--st-orange), var(--st-orange-deep));
}

.st-contracts-contact-formhead { margin-bottom: 1.5rem; }
.st-contracts-contact-formhead h2 {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    font-weight: 800; color: var(--st-ink); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4rem;
}
.st-contracts-contact-formhead p { font-size: .98rem; line-height: 1.6; color: var(--st-body); margin: 0; }

.st-contact-form { display: flex; flex-direction: column; }
.st-contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-bottom: 1.5rem; }
.st-contact-field { display: flex; flex-direction: column; gap: .45rem; }
.st-contact-field-full { grid-column: 1 / -1; }
.st-contact-field label { font-size: 13px; font-weight: 800; color: var(--st-ink); }
.st-contact-field input,
.st-contact-field textarea {
    width: 100%;
    padding: 14px 15px;
    background: var(--st-surface-alt);
    border: 1px solid #dfe3e7;
    border-radius: var(--st-radius-sm);
    color: var(--st-ink);
    font-size: 16px;
    font-family: 'Mulish', sans-serif;
    transition: border-color var(--st-fast), box-shadow var(--st-fast), background var(--st-fast);
}
.st-contact-field input::placeholder,
.st-contact-field textarea::placeholder { color: #9aa1a9; }
.st-contact-field input:focus,
.st-contact-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--st-orange);
    box-shadow: 0 0 0 4px rgba(242,136,35,.12);
}
.st-contact-field textarea { resize: none; min-height: 180px; }

/* Validation states */
.st-contact-field input.error,
.st-contact-field textarea.error { border-color: #e53935; background: #fff7f7; }
.st-contact-field input.error:focus,
.st-contact-field textarea.error:focus { border-color: #e53935; box-shadow: 0 0 0 4px rgba(229,57,53,.12); }
.st-contact-field input.success,
.st-contact-field textarea.success { border-color: #43a047; }

/* Error summary */
.st-error-messages {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: var(--st-radius-sm);
    padding: 14px 16px;
    margin-bottom: 1.1rem;
    color: #fff;
}
.st-error-messages ul { margin: 0; padding: 0; list-style: none; }
.st-error-messages li { margin-bottom: 6px; position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; }
.st-error-messages li::before {
    content: '!'; position: absolute; left: 0; top: 1px;
    width: 15px; height: 15px; background: rgba(255,255,255,.22); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}
.st-error-messages li:last-child { margin-bottom: 0; }

/* Submit */
.st-contact-submit {
    align-self: stretch;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 15px 34px;
    background: var(--st-orange);
    border: 2px solid var(--st-orange);
    border-radius: var(--st-pill);
    color: #fff;
    font-size: 16px; font-weight: 800; font-family: 'Mulish', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(242,136,35,.32);
    transition: background var(--st-fast), border-color var(--st-fast), transform var(--st-fast), box-shadow var(--st-fast);
}
.st-contact-submit:hover { background: var(--st-orange-hover); border-color: var(--st-orange-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,136,35,.42); }
.st-contact-submit i { transition: transform var(--st-fast); }
.st-contact-submit:hover i { transform: translateX(4px); }
.st-contact-submit:disabled { background: #cbd0d5; border-color: #cbd0d5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Loading overlay: centred on the form card, all devices ---- */
.st-contact-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(2px);
    display: none;              /* JS toggles to flex */
    align-items: center;
    justify-content: center;
    border-radius: var(--st-radius-lg);
}
.st-contact-overlay-content { text-align: center; padding: 1rem; }
.st-contact-spinner {
    width: 52px; height: 52px;
    border: 4px solid #e6e8eb; border-top: 4px solid var(--st-orange);
    border-radius: 50%; animation: st-spin .8s linear infinite; margin: 0 auto 16px;
}
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-contact-overlay-content p { font-size: 16px; font-weight: 800; color: var(--st-ink); margin: 0; }

/* Kept in case the phone pill renders (hidden alt block) */
.st-contact-phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--st-ink); background: #fff; text-decoration: none;
    font-size: 17px; font-weight: 800;
    padding: 13px 28px; border-radius: var(--st-pill);
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}
.st-contact-phone i { color: var(--st-orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .st-contracts-contact-hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .st-contracts-contact-hero-sub { max-width: none; }
}

@media (max-width: 767px) {
    .st-contact-form-grid { grid-template-columns: 1fr; }
    .st-contact-field textarea { min-height: 130px; }
}

/* ============================================================
   MAP (full width, below hero)
   ============================================================ */
.st-contracts-contact-map { display: block; line-height: 0; }
.st-contracts-contact-map iframe {
    width: 100%;
    height: 460px;
    border: 0;
    display: block;
    filter: grayscale(8%);
}
@media (max-width: 767px) {
    .st-contracts-contact-map iframe { height: 360px; }
}
