/* =========================================================
   A1 CASH & CARRY
   CONTACT PAGE
========================================================= */

.contact-page {
    background: #f7f9f8;
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}

.contact-page * {
    box-sizing: border-box;
}

.contact-page img {
    max-width: 100%;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.contact-breadcrumb {
    width: min(1400px, 94%);
    margin: auto;
    padding: 20px 0;

    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 13px;
    color: #667085;
}

.contact-breadcrumb a {
    color: #087f23;
    font-weight: 600;
    text-decoration: none;
}

.contact-breadcrumb i {
    font-size: 9px;
    color: #98a2b3;
}

.contact-breadcrumb strong {
    color: #475467;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    width: min(1400px, 94%);
    min-height: 380px;

    margin: 0 auto 35px;

    padding: 55px 65px;

    position: relative;
    overflow: hidden;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #ffffff;

    background: #05651b;

    isolation: isolate;
}


/* REAL BACKGROUND IMAGE */

.contact-hero-image {
    position: absolute;
    inset: 0;

    background-image:
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;
    background-position: center;

    z-index: -3;

    transform: scale(1.02);
}


/* GREEN OVERLAY */

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #d85e5b 0%,
            rgba(114, 123, 83, 0.88) 48%,
            rgba(0, 80, 20, .48) 100%
        );

    z-index: -2;
}


/* DECORATIVE CIRCLES */

.contact-hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    right: -140px;
    top: -220px;

    background:
        rgba(255,255,255,.12);

    z-index: -1;
}

.contact-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    right: 100px;
    bottom: -220px;

    background:
        rgba(255,255,255,.08);

    z-index: -1;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.contact-hero-content {
    position: relative;
    z-index: 5;

    max-width: 720px;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;

    border-radius: 30px;

    background:
        rgba(255,255,255,.15);

    border:
        1px solid rgba(255,255,255,.25);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.3px;

    margin-bottom: 17px;
}

.contact-hero h1 {
    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.08;

    margin: 0 0 18px;

    font-weight: 800;
}

.contact-hero h1 span {
    color: #ffcf33;
}

.contact-hero p {
    max-width: 680px;

    font-size: 16px;

    line-height: 1.8;

    color:
        rgba(255,255,255,.93);

    margin: 0 0 25px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.contact-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: .3s ease;
}

.contact-hero-btn.primary {
    background: #ffffff;
    color: #087f23;
}

.contact-hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.contact-hero-btn.secondary {
    color: #ffffff;

    border:
        1px solid rgba(236, 9, 9, 0.991);

    background:
        rgba(237, 8, 8, 0.993);
}

.contact-hero-btn.secondary:hover {
    background:
        rgba(255,255,255,.16);

    transform: translateY(-2px);
}


/* =========================================================
   HERO IMAGE CARD
========================================================= */

.contact-hero-image-card {
    position: relative;
    z-index: 5;

    width: 300px;
    height: 250px;

    margin-left: 40px;

    border-radius: 18px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.30);

    background:
        rgba(255,255,255,.10);

    box-shadow:
        0 15px 40px rgba(0,0,0,.18);

    flex-shrink: 0;
}

.contact-hero-image-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    opacity: .88;
}

.hero-image-info {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 15px;

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 12px;

    background:
        rgb(228, 8, 8);

    backdrop-filter: blur(8px);
}

.hero-round-icon {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: #eb280a;

    flex-shrink: 0;
}

.hero-image-info div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-image-info strong {
    font-size: 12px;
}

.hero-image-info span {
    font-size: 10px;
    opacity: .8;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-info-section {
    width: min(1400px, 94%);

    margin: 0 auto 30px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.contact-info-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e3e8e5;

    border-radius: 15px;

    padding: 0;

    overflow: hidden;

    box-shadow:
        0 6px 22px rgba(0,0,0,.04);

    transition: .3s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(228, 8, 8, 0.934);

    box-shadow:
        0 14px 30px rgba(0,0,0,.08);
}


/* CARD IMAGE */

.contact-card-image {
    width: 100%;
    height: 120px;

    overflow: hidden;

    position: relative;
}

.contact-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    /* background:
        linear-gradient(
            180deg,
            transparent 30%,
            rgba(226, 5, 5, 0.993)
        ); */
}

.contact-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.contact-info-card:hover
.contact-card-image img {
    transform: scale(1.07);
}


/* ICON */

.contact-info-icon {
    width: 52px;
    height: 52px;

    margin: -26px 0 0 23px;

    position: relative;
    z-index: 3;

    border-radius: 13px;

    background: #e9f8ec;

    color: #e40909;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    border: 3px solid #ffffff;
}

.contact-info-content {
    padding: 12px 23px 23px;
}

.contact-info-content span {
    color: #087f23;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}

.contact-info-content h3 {
    color: #172033;

    font-size: 16px;

    margin: 5px 0;
}

.contact-info-content p {
    color: #667085;

    font-size: 12px;

    margin-bottom: 8px;
}

.contact-info-content a {
    color: #087f23;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}

.contact-info-content a:hover {
    color: #05651b;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.contact-content {
    width: min(1400px, 94%);

    margin: 0 auto 60px;

    display: grid;

    grid-template-columns:
        1.5fr .8fr;

    gap: 25px;

    align-items: start;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.contact-section-title {
    margin-bottom: 25px;
}

.contact-section-title span {
    color: #087f23;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.contact-section-title h2 {
    color: #172033;

    font-size: 28px;

    margin: 5px 0 0;
}

.contact-section-title p {
    color: #667085;

    font-size: 13px;

    margin-top: 7px;

    line-height: 1.7;
}

.contact-section-title.center {
    text-align: center;
}


/* =========================================================
   FORM CARD
========================================================= */

.contact-form-card {
    background: #ffffff;

    border: 1px solid #e3e8e5;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.05);
}

.contact-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.contact-form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;

    min-width: 0;
}

.contact-form-group.contact-full {
    grid-column: 1 / -1;
}

.contact-form-group label {
    color: #344054;

    font-size: 13px;

    font-weight: 600;
}

.contact-form-group label span {
    color: #98a2b3;

    font-size: 11px;

    font-weight: 400;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;

    border: 1px solid #d9e0dc;

    background: #ffffff;

    color: #172033;

    border-radius: 9px;

    padding: 13px 14px;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition: .25s ease;
}

.contact-form-group input,
.contact-form-group select {
    height: 48px;
}

.contact-form-group textarea {
    min-height: 145px;

    resize: vertical;

    line-height: 1.6;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #98a2b3;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: #087f23;

    box-shadow:
        0 0 0 3px
        rgba(8,127,35,.10);
}

.contact-form-group small {
    min-height: 15px;

    color: #e53935;

    font-size: 11px;
}


/* =========================================================
   MESSAGE
========================================================= */

.message-label-row {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

#messageCount {
    color: #98a2b3;

    font-size: 11px;
}

.contact-form-message {
    display: none;

    margin-top: 18px;

    padding: 12px 15px;

    border-radius: 8px;

    font-size: 12px;

    line-height: 1.5;
}

.contact-form-message.success {
    display: block;

    color: #087f23;

    background: #e9f8ec;

    border:
        1px solid #bde7c5;
}

.contact-form-message.error {
    display: block;

    color: #d32f2f;

    background: #fff1f1;

    border:
        1px solid #ffcaca;
}


/* =========================================================
   SUBMIT
========================================================= */

.contact-submit-btn {
    min-width: 190px;

    height: 50px;

    margin-top: 18px;

    padding: 0 25px;

    border: none;

    border-radius: 9px;

    background: #d30606;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    cursor: pointer;

    transition: .3s ease;
}

.contact-submit-btn:hover {
    background: #8a0707;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(8,127,35,.20);
}

.contact-submit-btn:disabled {
    opacity: .65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   QUICK HELP
========================================================= */

.contact-help-card {
    background: #ffffff;

    border: 1px solid #e3e8e5;

    border-radius: 18px;

    padding: 25px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.05);
}


/* QUICK HELP IMAGE */

.quick-help-image {
    height: 190px;

    position: relative;

    overflow: hidden;

    border-radius: 13px;

    margin-bottom: 22px;
}

.quick-help-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .4s ease;
}

.contact-help-card:hover
.quick-help-image img {
    transform: scale(1.05);
}

.quick-help-image-overlay {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    border-radius: 10px;

    background:
        rgba(0,75,20,.75);

    backdrop-filter: blur(6px);

    color: #ffffff;

    font-size: 11px;

    font-weight: 600;
}

.quick-help-image-overlay i {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #087f23;
}

.help-card-heading {
    margin-bottom: 18px;
}

.help-card-heading span {
    color: #087f23;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.help-card-heading h2 {
    color: #172033;

    font-size: 24px;

    margin-top: 5px;
}

.help-card-heading p {
    color: #667085;

    font-size: 12px;

    margin-top: 5px;
}


/* =========================================================
   HELP LIST
========================================================= */

.help-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.help-item {
    display: grid;

    grid-template-columns:
        42px 1fr 15px;

    align-items: center;

    gap: 10px;

    padding: 13px;

    border-radius: 10px;

    background: #f7f9f8;

    border: 1px solid #edf0ee;

    text-decoration: none;

    transition: .25s ease;
}

.help-item:hover {
    background: #e9f8ec;

    border-color:
        #ccebd2;

    transform: translateX(3px);
}

.help-icon {
    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: #e9f8ec;

    color: #c70707;

    display: flex;
    align-items: center;
    justify-content: center;
}

.help-item h3 {
    color: #172033;

    font-size: 12px;

    margin-bottom: 2px;
}

.help-item p {
    color: #667085;

    font-size: 10px;
}

.help-item > span {
    color: #087f23;

    font-weight: 700;
}


/* =========================================================
   SUPPORT BOX
========================================================= */

.support-box {
    margin-top: 18px;

    padding: 16px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #e9f8ec,
            #f4fbf5
        );

    display: flex;

    gap: 12px;
}

.support-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    background: #ffffff;

    color: #db0d0d;

    display: flex;
    align-items: center;
    justify-content: center;
}

.support-box h3 {
    color: #172033;

    font-size: 13px;

    margin-bottom: 4px;
}

.support-box p {
    color: #667085;

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 4px;
}

.support-box strong {
    color: #087f23;

    font-size: 11px;
}


/* =========================================================
   FAQ
========================================================= */

.contact-faq {
    width: min(1000px, 94%);

    margin: 0 auto 60px;
}

.faq-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.faq-item {
    background: #ffffff;

    border: 1px solid #e3e8e5;

    border-radius: 12px;

    overflow: hidden;
}

.faq-item summary {
    list-style: none;

    cursor: pointer;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #172033;

    font-size: 14px;

    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary b {
    color: #087f23;

    font-size: 20px;

    transition: .3s;
}

.faq-item[open] summary {
    color: #087f23;

    border-bottom:
        1px solid #edf0ee;
}

.faq-item[open] summary b {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 15px 20px 18px;

    color: #667085;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .contact-page {
    background: #101512;
}

body.dark-mode .contact-breadcrumb {
    color: #aab5ad;
}

body.dark-mode .contact-breadcrumb strong {
    color: #d8e0da;
}

body.dark-mode .contact-info-card,
body.dark-mode .contact-form-card,
body.dark-mode .contact-help-card,
body.dark-mode .faq-item {
    background: #171d19;

    border-color: #2b362f;
}

body.dark-mode .contact-info-content h3,
body.dark-mode .contact-section-title h2,
body.dark-mode .help-card-heading h2,
body.dark-mode .help-item h3,
body.dark-mode .faq-item summary,
body.dark-mode .support-box h3 {
    color: #f1f5f2;
}

body.dark-mode .contact-info-content p,
body.dark-mode .contact-section-title p,
body.dark-mode .help-card-heading p,
body.dark-mode .help-item p,
body.dark-mode .faq-item p,
body.dark-mode .support-box p {
    color: #aab5ad;
}

body.dark-mode .contact-form-group label {
    color: #d8e0da;
}

body.dark-mode .contact-form-group input,
body.dark-mode .contact-form-group select,
body.dark-mode .contact-form-group textarea {
    background: #111612;

    color: #f1f5f2;

    border-color: #344039;
}

body.dark-mode .help-item {
    background: #111612;

    border-color: #2b362f;
}

body.dark-mode .support-box {
    background: #16251a;
}

body.dark-mode .faq-item[open] summary {
    border-color: #2b362f;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .contact-hero {
        padding: 45px;
    }

    .contact-hero-image-card {
        width: 260px;
        height: 220px;

        margin-left: 25px;
    }

    .contact-info-section {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .contact-hero {
        min-height: 360px;

        padding: 40px 30px;
    }

    .contact-hero-image-card {
        display: none;
    }

    .contact-hero-content {
        max-width: 100%;
    }

    .contact-hero h1 {
        font-size: 42px;
    }

    .contact-hero p {
        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .contact-page {
        padding-bottom: 40px;
    }

    .contact-breadcrumb {
        width: calc(100% - 30px);

        padding: 14px 0;

        font-size: 11px;

        white-space: nowrap;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .contact-breadcrumb::-webkit-scrollbar {
        display: none;
    }


    /* HERO */

    .contact-hero {
        width: calc(100% - 30px);

        min-height: auto;

        padding: 32px 22px;

        border-radius: 15px;

        margin-bottom: 22px;

        display: block;
    }

    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-hero p {
        font-size: 13px;

        line-height: 1.7;
    }

    .contact-hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .contact-hero-btn {
        width: 100%;
    }


    /* CONTACT CARDS */

    .contact-info-section {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .contact-card-image {
        height: 140px;
    }


    /* MAIN */

    .contact-content {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .contact-form-card,
    .contact-help-card {
        padding: 20px 16px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .contact-form-group.contact-full {
        grid-column: auto;
    }

    .contact-submit-btn {
        width: 100%;
    }


    /* QUICK HELP */

    .quick-help-image {
        height: 170px;
    }


    /* FAQ */

    .contact-faq {
        width: calc(100% - 30px);
    }

    .contact-section-title h2 {
        font-size: 23px;
    }

    .faq-item summary {
        padding: 15px;

        font-size: 12px;
    }

    .faq-item p {
        padding: 13px 15px 16px;

        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .contact-hero {
        padding: 28px 18px;
    }

    .contact-hero h1 {
        font-size: 29px;
    }

    .contact-hero p {
        font-size: 12px;
    }

    .contact-info-content {
        padding-left: 17px;
        padding-right: 17px;
        padding-bottom: 18px;
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;

        margin-left: 17px;

        font-size: 17px;
    }

    .quick-help-image {
        height: 150px;
    }

    .help-item {
        grid-template-columns:
            38px 1fr 10px;

        padding: 11px;
    }

    .help-icon {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   IMAGE LOADING EFFECT
========================================================= */

.contact-page img {
    background: #e9f8ec;
}

.contact-card-image img,
.contact-hero-image-card img,
.quick-help-image img {
    object-position: center;
}


/* =========================================================
   DARK MODE IMAGE CARDS
========================================================= */

body.dark-mode .contact-info-icon {
    border-color: #171d19;
}

body.dark-mode .contact-form-group input::placeholder,
body.dark-mode .contact-form-group textarea::placeholder {
    color: #69756e;
}

body.dark-mode .contact-submit-btn {
    color: #ffffff;
}
