/*
 * Shams Food Store
 * Contact Us page
 *
 * This stylesheet is intentionally scoped to .contact-* classes so that
 * adding the page cannot accidentally override existing storefront,
 * cart, authentication, or payment styles.
 */

.contact-page {
    --contact-green: #1B5E20;
    --contact-green-dark: #124417;
    --contact-green-light: #EAF5EC;
    --contact-orange: #F78E1E;
    --contact-white: #FFFFFF;
    --contact-text: #1F2933;
    --contact-muted: #667085;
    --contact-border: #E4E7EC;
    --contact-background: #F8FAF8;

    color: var(--contact-text);
    background: var(--contact-white);
}


/* ================================================================
   Shared container
   ================================================================ */

.contact-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* ================================================================
   Hero
   ================================================================ */

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 85px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(247, 142, 30, 0.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--contact-green-light),
            var(--contact-white)
        );
}

.contact-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(247, 142, 30, 0.08);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--contact-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.contact-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.contact-hero h1 {
    margin: 0;
    color: var(--contact-green-dark);
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.contact-hero h1 span {
    color: var(--contact-orange);
}

.contact-hero p {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--contact-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ================================================================
   Main content
   ================================================================ */

.contact-section {
    padding: 80px 0 100px;
    background: var(--contact-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: 70px;
    align-items: start;
}


/* ================================================================
   Contact information
   ================================================================ */

.contact-section-heading {
    margin-bottom: 28px;
}

.contact-section-heading h2,
.contact-form-heading h2 {
    margin: 0;
    color: var(--contact-green-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.contact-section-heading p,
.contact-form-heading p {
    margin: 14px 0 0;
    color: var(--contact-muted);
    line-height: 1.75;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin-bottom: 12px;
    color: inherit;
    text-decoration: none;
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(16, 24, 40, 0.04);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 94, 32, 0.25);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.contact-info-card > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-info-card strong {
    color: var(--contact-green-dark);
    font-size: 0.98rem;
}

.contact-info-card small {
    color: var(--contact-muted);
    font-size: 0.85rem;
}

.contact-info-icon {
    display: inline-grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--contact-green);
    background: var(--contact-green-light);
    border-radius: 12px;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}


/* ================================================================
   Business hours
   ================================================================ */

.contact-hours {
    margin-top: 24px;
    padding: 22px;
    background: var(--contact-green-light);
    border-radius: 16px;
}

.contact-hours-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-hours-header .contact-info-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    background: var(--contact-white);
}

.contact-hours-header strong {
    color: var(--contact-green-dark);
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    color: var(--contact-muted);
    border-top: 1px solid rgba(27, 94, 32, 0.12);
    font-size: 0.9rem;
}

.contact-hours-row strong {
    color: var(--contact-green-dark);
    text-align: right;
}


/* ================================================================
   Form card
   ================================================================ */

.contact-form-card {
    padding: 36px;
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.contact-form-heading {
    margin-bottom: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field label {
    color: var(--contact-green-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.contact-field label > span {
    color: var(--contact-orange);
}

.contact-field label small {
    margin-left: 5px;
    color: var(--contact-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--contact-text);
    font: inherit;
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.contact-field textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #98A2B3;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--contact-green);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.09);
}

.contact-field input:invalid:not(:placeholder-shown),
.contact-field textarea:invalid:not(:placeholder-shown) {
    border-color: #D92D20;
}

.contact-character-count {
    align-self: flex-end;
    margin-top: -3px;
    color: var(--contact-muted);
    font-size: 0.75rem;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    color: var(--contact-white);
    font: inherit;
    font-weight: 750;
    background: var(--contact-green);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.contact-submit:hover {
    background: var(--contact-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.2);
}

.contact-submit:focus-visible {
    outline: 3px solid rgba(247, 142, 30, 0.4);
    outline-offset: 3px;
}

.contact-submit svg {
    width: 19px;
    height: 19px;
}


/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-info {
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .contact-container {
        width: min(100% - 28px, 1180px);
    }

    .contact-hero {
        padding: 65px 0 60px;
    }

    .contact-section {
        padding: 55px 0 70px;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-hours-row {
        flex-direction: column;
        gap: 3px;
    }

    .contact-hours-row strong {
        text-align: left;
    }
}