﻿/* =========================================================
   EASTECH CONTACT FORM — GLOBAL.CSS COMPATIBLE
   Uses the actual Eastech palette from global.css:
   Orange / Purple / Ink / Soft background
   ========================================================= */

.eastech-contact {
    --ec-orange: #f7941e;
    --ec-orange-deep: #f4611e;
    --ec-purple: #5a56a8;
    --ec-purple-deep: #3c3785;
    --ec-ink: #1c1c3a;
    --ec-sub: #6b6f8d;
    --ec-line: #ebebf3;
    --ec-soft: #f6f6fb;
    padding: 100px 24px;
    background: #fff;
    color: var(--ec-ink);
    font-family: 'Poppins', sans-serif;
}

    .eastech-contact .contact-container {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
    }


    /* =========================================================
   HEADING
   ========================================================= */

    .eastech-contact .contact-heading {
        max-width: 760px;
        margin: 0 auto 48px;
        text-align: center;
    }

    .eastech-contact .contact-eyebrow {
        display: inline-block;
        margin-bottom: 12px;
        color: var(--ec-orange) !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .eastech-contact .contact-heading h2 {
        margin: 0 0 14px !important;
        color: var(--ec-ink) !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: clamp(32px, 4vw, 48px);
        font-weight: 700 !important;
        line-height: 1.15;
        letter-spacing: -.5px;
    }

    .eastech-contact .contact-heading p {
        max-width: 650px;
        margin: 0 auto !important;
        color: var(--ec-sub) !important;
        font-size: 15px;
        line-height: 1.75;
    }


    /* =========================================================
   TOP 3 CONTACT CARDS
   ========================================================= */

    .eastech-contact .contact-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        margin-bottom: 26px;
    }

    .eastech-contact .contact-card {
        position: relative;
        display: flex;
        align-items: flex-start;
        width: 100%;
        min-height: 155px;
        padding: 25px !important;
        border: 1px solid var(--ec-line) !important;
        border-radius: var(--radius) !important;
        background: #fff !important;
        color: var(--ec-ink) !important;
        box-shadow: 0 20px 45px -20px rgba(28, 28, 58, .14) !important;
        text-align: left;
        cursor: pointer;
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

        .eastech-contact .contact-card:hover,
        .eastech-contact .contact-card.selected {
            transform: translateY(-5px);
            border-color: rgba(90, 86, 168, .35) !important;
            box-shadow: var(--shadow) !important;
        }

    .eastech-contact .contact-card-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        border-radius: 12px;
        background: linear-gradient( 135deg, rgba(247, 148, 30, .13), rgba(90, 86, 168, .10) ) !important;
        color: var(--ec-purple) !important;
        font-size: 18px;
        font-weight: 700;
    }

    .eastech-contact .contact-card-content {
        min-width: 0;
        padding-right: 20px;
    }

        .eastech-contact .contact-card-content h3 {
            margin: 0 0 7px !important;
            color: var(--ec-ink) !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: 16px;
            font-weight: 700 !important;
        }

        .eastech-contact .contact-card-content p {
            margin: 0 0 9px !important;
            color: var(--ec-sub) !important;
            font-size: 12.5px;
            line-height: 1.55;
        }

        .eastech-contact .contact-card-content span {
            display: block;
            color: var(--ec-purple) !important;
            font-size: 11.5px;
            font-weight: 600;
            overflow-wrap: anywhere;
        }

    .eastech-contact .contact-card-arrow {
        position: absolute;
        right: 20px;
        bottom: 18px;
        color: var(--ec-orange) !important;
        font-size: 18px;
        transition: transform .2s ease;
    }

    .eastech-contact .contact-card:hover .contact-card-arrow {
        transform: translateX(4px);
    }


    /* =========================================================
   FORM PANEL
   ========================================================= */

    .eastech-contact .contact-form-wrapper {
        width: 100%;
        padding: 42px 46px !important;
        border: 1px solid var(--ec-line) !important;
        border-radius: var(--radius) !important;
        background: #f3efe4 !important;
        box-shadow: none !important;
    }

    .eastech-contact .contact-form-intro {
        margin-bottom: 28px;
    }

        .eastech-contact .contact-form-intro > span {
            display: inline-block;
            margin-bottom: 8px;
            color: var(--ec-orange) !important;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .eastech-contact .contact-form-intro h3 {
            margin: 0 0 6px !important;
            color: var(--ec-ink) !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: 26px;
            font-weight: 700 !important;
        }

        .eastech-contact .contact-form-intro p {
            margin: 0 !important;
            color: var(--ec-sub) !important;
            font-size: 13px;
        }


    /* =========================================================
   FORM GRID
   ========================================================= */

    .eastech-contact .form-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 22px !important;
    }

    .eastech-contact .form-full {
        grid-column: 1 / -1 !important;
    }

    .eastech-contact .form-group {
        display: flex !important;
        flex-direction: column !important;
    }

        .eastech-contact .form-group label {
            margin: 0 0 7px !important;
            color: var(--ec-ink) !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: 12px;
            font-weight: 600 !important;
        }

            .eastech-contact .form-group label span {
                color: var(--ec-orange) !important;
            }


        /* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

        .eastech-contact .form-group input,
        .eastech-contact .form-group select,
        .eastech-contact .form-group textarea {
            width: 100% !important;
            box-sizing: border-box !important;
            border: 1px solid var(--ec-line) !important;
            border-radius: 10px !important;
            background: #fff !important;
            color: var(--ec-ink) !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: 13px !important;
            outline: none !important;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .eastech-contact .form-group input,
        .eastech-contact .form-group select {
            height: 48px !important;
            padding: 0 14px !important;
        }

        .eastech-contact .form-group textarea {
            min-height: 145px !important;
            padding: 13px 14px !important;
            line-height: 1.65;
            resize: vertical;
        }

            .eastech-contact .form-group input::placeholder,
            .eastech-contact .form-group textarea::placeholder {
                color: #a1a3b6 !important;
            }

            .eastech-contact .form-group input:focus,
            .eastech-contact .form-group select:focus,
            .eastech-contact .form-group textarea:focus {
                border-color: var(--ec-purple) !important;
                box-shadow: 0 0 0 3px rgba(90, 86, 168, .09) !important;
            }


    /* =========================================================
   INQUIRY BUTTONS
   ========================================================= */

    .eastech-contact .inquiry-options {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .eastech-contact .inquiry-option {
        display: flex !important;
        align-items: center !important;
        gap: 11px !important;
        min-height: 70px !important;
        padding: 12px 14px !important;
        border: 1px solid var(--ec-line) !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: var(--ec-ink) !important;
        font-family: 'Poppins', sans-serif !important;
        cursor: pointer;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

        .eastech-contact .inquiry-option:hover {
            border-color: rgba(90, 86, 168, .35) !important;
        }

        .eastech-contact .inquiry-option.active {
            border-color: var(--ec-purple) !important;
            background: #fff !important;
            box-shadow: 0 8px 24px rgba(60, 55, 133, .09) !important;
        }

    .eastech-contact .option-check {
        flex: 0 0 21px;
        width: 21px;
        height: 21px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #cfd0df !important;
        border-radius: 50%;
        color: transparent;
        font-size: 10px;
        font-weight: 700;
    }

    .eastech-contact .inquiry-option.active .option-check {
        border-color: var(--ec-orange) !important;
        background: var(--ec-orange) !important;
        color: #fff !important;
    }

    .eastech-contact .inquiry-option strong {
        display: block;
        margin-bottom: 2px;
        color: var(--ec-ink) !important;
        font-size: 11.5px;
        font-weight: 700 !important;
    }

    .eastech-contact .inquiry-option small {
        display: block;
        color: var(--ec-sub) !important;
        font-size: 10.5px;
    }


    /* =========================================================
   BOTTOM / SEND
   ========================================================= */

    .eastech-contact .form-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px;
        margin-top: 28px !important;
        padding-top: 23px !important;
        border-top: 1px solid var(--ec-line) !important;
    }

    .eastech-contact .form-note {
        margin: 0 !important;
        color: var(--ec-sub) !important;
        font-size: 11.5px;
    }

    .eastech-contact .contact-submit {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 14px;
        min-width: 170px;
        height: 48px;
        padding: 0 20px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: linear-gradient( 135deg, var(--ec-orange), var(--ec-orange-deep) ) !important;
        color: #fff !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(247, 148, 30, .22);
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .eastech-contact .contact-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(247, 148, 30, .28);
        }

    .eastech-contact .submit-arrow {
        font-size: 17px;
    }


    /* =========================================================
   FORM MESSAGE
   ========================================================= */

    .eastech-contact .form-message {
        display: none;
        margin-top: 17px;
        padding: 12px 14px;
        border-radius: 9px;
        font-size: 12px;
    }

        .eastech-contact .form-message.success {
            display: block;
            border: 1px solid #c8dfd0;
            background: #f2faf5;
            color: #32734a;
        }

        .eastech-contact .form-message.error {
            display: block;
            border: 1px solid #e5caca;
            background: #fff5f5;
            color: #a13e3e;
        }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .eastech-contact .contact-cards {
        grid-template-columns: 1fr;
    }

    .eastech-contact .inquiry-options {
        grid-template-columns: 1fr !important;
    }

    .eastech-contact .contact-form-wrapper {
        padding: 34px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .eastech-contact {
        padding: 70px 16px 80px;
    }

        .eastech-contact .contact-heading h2 {
            font-size: 31px !important;
        }

        .eastech-contact .form-grid {
            grid-template-columns: 1fr !important;
        }

        .eastech-contact .form-full {
            grid-column: auto !important;
        }

        .eastech-contact .contact-form-wrapper {
            padding: 25px 18px !important;
        }

        .eastech-contact .form-bottom {
            flex-direction: column !important;
            align-items: stretch !important;
        }

        .eastech-contact .contact-submit {
            width: 100% !important;
        }
}

