/* =====================================================
   MINIMAL BAR (seller / courier only — replaces the
   buyer top-bar + header, which has no place for them:
   Wishlist, Cart, and buyer Chat don't apply to their
   accounts)
===================================================== */

.contact-minimal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: radial-gradient(900px 200px at 85% -60%, rgba(217,164,65,0.16), transparent),
                linear-gradient(135deg, #1c0707 0%, #300b0b 55%, #120404 100%);
    border-bottom: 1px solid rgba(217,164,65,0.25);
}

.contact-minimal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eee;
    font-size: 13px;
    font-weight: 600;
    transition: color .15s;
}

.contact-minimal-back:hover {
    color: #d9a441;
}

.contact-minimal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d9a441;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
}

.contact-minimal-brand img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* =====================================================
   CONTACT US — same colours and theme as the login page
   (login.css): the black-and-red backdrop, the dark brand
   panel with its red glow and thin arcs, Plus Jakarta Sans,
   white 48px fields with a red focus ring, and the red
   gradient button.
===================================================== */

.contact-page {
    min-height: calc(100vh - 130px);
    background:
        radial-gradient(circle at 15% 15%, rgba(224,0,32,.18), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(224,0,32,.14), transparent 45%),
        linear-gradient(160deg, #050505 0%, #14040a 55%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
}

.contact-page *:not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: inherit;
}

.contact-shell {
    position: relative;
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0,0,0,.2),
        0 30px 70px -12px rgba(0,0,0,.55),
        0 8px 24px -8px rgba(0,0,0,.35);
}

/* -----------------------------------------------------
   LEFT — INFO PANEL (the login page's brand panel)
----------------------------------------------------- */

.contact-info-panel {
    position: relative;
    padding: 52px 44px;
    background: radial-gradient(120% 130% at 15% 10%, #1a0508 0%, #0a0a0c 55%);
    color: #fff;
    overflow: hidden;
}

/* The two soft red glows in opposite corners. */
.contact-info-panel::before,
.contact-info-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.contact-info-panel::before {
    width: 420px;
    height: 420px;
    top: -250px;
    right: -230px;
    background: radial-gradient(circle at 35% 35%, #ff3347, #7a0010 72%);
    opacity: .9;
}

.contact-info-panel::after {
    width: 320px;
    height: 320px;
    bottom: -210px;
    left: -190px;
    background: radial-gradient(circle at 65% 65%, #7a0010, #ff3347 78%);
    opacity: .55;
}

/* Everything in the panel sits above the glows. */
.contact-info-panel > * {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-heading {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.6px;
    color: #fff;
    line-height: 1.1;
}

.contact-heading span {
    color: #ff4d5e;
}

.contact-heading-divider {
    width: 48px;
    height: 2px;
    background: #d0001b;
    border-radius: 2px;
    margin: 18px 0 20px;
}

.contact-lede {
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 28px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.contact-info-row strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2px;
}

.contact-info-row span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    word-break: break-word;
}

.contact-info-icon:is(a) {
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.contact-info-icon:is(a):hover {
    background: #d0001b;
    box-shadow: none;
}

.contact-social-link {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
}

.contact-social-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* -----------------------------------------------------
   RIGHT — FORM PANEL
----------------------------------------------------- */

.contact-form-panel {
    padding: 52px 48px;
}

.contact-form-heading {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #101828;
    margin-bottom: 8px;
}

.contact-form-heading span {
    color: #d0001b;
}

.contact-form-subtext {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 26px;
}

.contact-status-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf3;
    border: 1px solid #75e0a7;
    color: #067647;
    font-size: 12.5px;
    font-weight: 500;
    padding: 11px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
}

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

.contact-input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.contact-input-wrap i {
    position: absolute;
    left: 17px;
    top: 24px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 15px;
    transition: color .15s;
}

.contact-input-wrap:focus-within i {
    color: #d0001b;
}

.contact-input-wrap input,
.contact-input-wrap textarea {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0 18px 0 46px;
    outline: none;
    color: #101828;
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.contact-input-wrap input::placeholder,
.contact-input-wrap textarea::placeholder {
    color: #98a2b3;
}

.contact-input-wrap input:focus,
.contact-input-wrap textarea:focus {
    border-color: #d0001b;
    box-shadow: 0 0 0 4px rgba(208,0,27,0.10);
}

.contact-textarea-wrap textarea {
    height: 160px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.5;
    resize: vertical;
}

.contact-error {
    display: block;
    color: #d0001b;
    font-size: 12px;
    font-weight: 500;
    margin: -12px 0 14px 2px;
}

/* The shared button as the two-factor pages (two-factor-setup,
   two-factor-recovery-codes) use it — flat GoCart red. The Contact Us form
   restyles its own copy just below. */
.contact-submit-btn {
    width: 100%;
    height: 52px;
    background: #d0001b;
    border: 1.5px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: .2s;
    margin-top: 4px;
}

.contact-submit-btn:hover {
    background: #a80016;
}

.contact-form .contact-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #e0192f, #c2001a);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 16px -4px rgba(208,0,27,.32);
    margin-top: 4px;
}

.contact-form .contact-submit-btn i {
    font-size: 13px;
    transition: transform .15s;
}

.contact-form .contact-submit-btn:hover {
    background: linear-gradient(180deg, #ec1f36, #a8001a);
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 20px -4px rgba(208,0,27,.4);
    transform: translateY(-1px);
}

.contact-form .contact-submit-btn:hover i {
    transform: translateX(3px);
}

.contact-form .contact-submit-btn:active {
    transform: translateY(0);
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

@media (max-width: 860px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        padding: 40px 32px;
    }

    .contact-form-panel {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   POLICY PAGES (Terms & Conditions / Privacy Policy)
===================================================== */

body:has(.policy-page) {
    background:
        radial-gradient(1200px 320px at 50% -10%, rgba(217,164,65,0.08), transparent),
        #f7f5f2;
}

.policy-page {
    /* Fluid instead of a fixed px column — a fixed max-width reads as a
       small island stranded in whitespace once the viewport is wider than
       it (e.g. zoomed out), so this scales with the viewport and only caps
       out on very large screens. */
    width: min(920px, 94vw);
    margin: 0 auto;
    padding: 48px 0 80px;
}

.policy-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 44px 52px;
    box-shadow:
        0 1px 1px rgba(16,24,40,.03),
        0 8px 16px -6px rgba(16,24,40,.08),
        0 24px 40px -16px rgba(16,24,40,.10);
    overflow: hidden;
}

.policy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d9a441, #d0001b, #d9a441);
}

.policy-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.policy-card-head-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #fdeaea;
    color: #d0001b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.policy-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.policy-updated {
    font-size: 12.5px;
    color: #888;
}

.policy-content {
    font-size: 14.5px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
}

@media (max-width: 600px) {
    .policy-page {
        width: min(920px, 100vw);
        padding: 24px 0 60px;
    }

    .policy-card {
        border-radius: 0;
        padding: 32px 22px;
        box-shadow: none;
    }

    .policy-card-head {
        gap: 12px;
    }

    .policy-card-head-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}
