﻿/* ==========================
FONT SYSTEM - THCS TÀ PỨA
========================== */

:root {
    --font-title: 'OpSan-ExtraBold';
    --font-heading: 'OpSan-Bold';
    --font-semi: 'Inter_24pt-SemiBold';
    --font-medium: 'Inter_24pt-Medium';
    --font-regular: 'Inter_24pt-Regular';
    --font-content: 'OpSan-R';
    --blue-main: #1e40af;
    --blue-light: #2563eb;
    --green-main: #15803d;
    --red-main: #dc2626;
    --text-dark: #0f172a;
    --text-light: #64748b;
}

.contacts * {
    box-sizing: border-box;
}

.contacts {
    font-family: var(--font-regular);
}
/* ===========================
CONTACT PAGE
=========================== */

.contacts {
    padding: 55px 0;
    background: linear-gradient( 145deg, #edf4ff 0%, #ffffff 45%, #eefcf3 100%);
    position: relative;
    overflow: hidden;
}

    /* EFFECT BG */

    .contacts:before,
    .contacts:after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(110px);
    }

    .contacts:before {
        width: 380px;
        height: 380px;
        background: rgba(37,99,235,.10);
        top: -120px;
        left: -120px;
    }

    .contacts:after {
        width: 320px;
        height: 320px;
        background: rgba(34,197,94,.10);
        right: -100px;
        bottom: -100px;
    }

/* HERO */

.school-hero {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 50px;
    border-radius: 40px;
    background: white;
    box-shadow: 0 25px 80px rgba(15,23,42,.07);
    margin-bottom: 45px;
}

.school-logo img {
    width: 175px;
    transition: .5s;
}

.school-logo:hover img {
    transform: scale(1.05) rotate(-4deg);
}

.school-badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 12px 22px;
    border-radius: 50px;
    background: linear-gradient( 135deg, #eff6ff, #dcfce7);
    color: var(--green-main);
    font-size: 14px;
    font-family: var(--font-semi);
}

.school-info h1 {
    font-size: 44px;
    line-height: 1.3;
    margin: 22px 0;
    color: var(--blue-main);
    font-family: var(--font-title);
    letter-spacing: -1px;
}

.school-info p {
    max-width: 760px;
    line-height: 1.9;
    font-size: 16px;
    color: var(--text-light);
    font-family: var(--font-content);
}

/* GRID */

.contact-layout {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 35px;
}

/* CARD LEFT */

.contact-card {
    background: white;
    padding: 5px 30px;
    border-radius: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

    .contact-card h3 {
        font-size: 28px;
        margin-bottom: 35px;
        color: var(--blue-main);
        font-family: var(--font-title);
    }

/* ITEM */

.contact-item {
    display: flex;
    gap: 22px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    position: relative;
}

    .contact-item:not(:last-child):after {
        content: "";
        position: absolute;
        left: 36px;
        top: 82px;
        width: 2px;
        height: 65px;
        background: linear-gradient( #cbd5e1, transparent);
    }

.icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
    transition: .4s;
}

.contact-item:hover .icon {
    transform: translateY(-6px) rotate(-5deg);
}

.icon {
    background: linear-gradient( 135deg, #1d4ed8, #2563eb);
}

    .icon.green {
        background: linear-gradient( 135deg, #15803d, #22c55e);
    }

    .icon.red {
        background: linear-gradient( 135deg, #dc2626, #ef4444);
    }

.contact-item p a {
    color: var(--text-light) !important;
}

.contact-item h4 {
    margin-bottom: 1px;
    font-size: 19px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    margin-top: 0;
}

.contact-item p {
    line-height: 1.9;
    color: var(--text-light) !important;
    font-family: var(--font-content);
    margin: 0;
}

/* SUPPORT */

.student-box {
    margin-top: 25px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient( 135deg, #fff7ed, #fffbeb);
    box-shadow: 0 15px 40px rgba(245,158,11,.08);
}

    .student-box h4 {
        margin-bottom: 20px;
        color: #c2410c;
        font-size: 24px;
        font-family: var(--font-heading);
    }

    .student-box li {
        list-style: none;
        padding: 15px 18px;
        background: white;
        margin-bottom: 12px;
        border-radius: 18px;
        font-family: var(--font-medium);
        transition: .35s;
    }

        .student-box li:hover {
            transform: translateX(8px);
        }

/* FORM */

.form-box {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    padding: 25px;
    border-radius: 40px;
    box-shadow: 0 25px 80px rgba(15,23,42,.08);
    margin-top: 26px;
}

    .form-box h2 {
        font-size: 35px;
        color: var(--blue-main);
        margin-bottom: 12px;
        font-family: var(--font-title);
        margin-top: 0;
    }

    .form-box p {
        color: var(--text-light);
        margin-bottom: 35px;
        font-family: var(--font-content);
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

/* INPUT */

.form-control {
    width: 100%;
    height: 70px;
    border-radius: 22px;
    padding: 0 24px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    font-size: 16px;
    font-family: var(--font-medium);
    transition: .35s;
}

    .form-control::placeholder {
        color: #94a3b8;
        font-family: var(--font-regular);
    }

    .form-control:focus {
        background: white;
        border-color: var(--blue-light);
        transform: translateY(-2px);
        box-shadow: 0 0 0 6px rgba(37,99,235,.08);
    }

.area {
    height: 220px !important;
    padding-top: 20px;
    resize: none;
}

/* CAPTCHA */

.captcha-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin: 25px 0;
}

.imgCapcha {
    padding: 6px;
    border-radius: 20px;
    background: white;
    border: 1px solid #dbeafe;
}

/* BUTTON */

.action-buttons {
    display: flex;
    gap: 18px;
}

.btn-send,
.btn-reset {
    height: 64px;
    padding: 0 40px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: .4s;
    font-family: var(--font-heading);
}

.btn-send {
    background: linear-gradient( 135deg, #1d4ed8, #15803d);
    color: white;
    box-shadow: 0 18px 40px rgba(37,99,235,.25);
}

    .btn-send:hover {
        transform: translateY(-5px);
    }

.btn-reset {
    background: #fff1f2;
    color: #dc2626;
}

    .btn-reset:hover {
        background: #ffe4e6;
    }

/* MAP */

.map-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

    .map-box iframe {
        width: 100%;
        height: 350px;
        border: none;
        border-radius: 24px;
    }

/* SUCCESS */

.contact-success {
    display: block;
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: #dcfce7;
    color: #166534;
    font-family: var(--font-semi);
}

/* MOBILE */

@media(max-width:991px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .school-hero {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .form-box h2 {
        font-size: 34px;
    }
}

@media(max-width:767px) {
    .contacts {
        padding: 60px 0;
    }

    .school-hero,
    .contact-card,
    .form-box {
        padding: 25px;
    }

    .school-info h1 {
        font-size: 30px;
    }

    .icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .form-box h2 {
        font-size: 23px;
    }
}

/* ==========================
   HERO SCHOOL - THCS TÀ PỨA
========================== */

.school-hero {
    position: relative;
    overflow: hidden;
    padding: 45px 55px;
    border-radius: 38px;
    background: linear-gradient( 135deg, #ffffff 0%, #f7fbff 45%, #eefbf3 100% );
    box-shadow: 0 25px 80px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.7);
    margin-bottom: 40px;
}

    .school-hero:before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        background: rgba(37,99,235,.08);
        border-radius: 50%;
        top: -140px;
        right: -80px;
        filter: blur(60px);
    }

    .school-hero:after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        background: rgba(34,197,94,.08);
        border-radius: 50%;
        left: -100px;
        bottom: -100px;
        filter: blur(60px);
    }

/* LAYOUT */

.hero-left {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* LOGO */

.school-logo {
    position: relative;
    flex-shrink: 0;
}

    .school-logo:before {
        content: "";
        position: absolute;
        inset: -15px;
        border-radius: 50%;
        background: linear-gradient( 135deg, rgba(37,99,235,.12), rgba(34,197,94,.12) );
        animation: pulseHero 4s infinite;
    }

    .school-logo img {
        width: 185px;
        height: 185px;
        object-fit: contain;
        position: relative;
        z-index: 2;
        border-radius: 50%;
        background: white;
        padding: 14px;
        box-shadow: 0 25px 60px rgba(37,99,235,.15), 0 15px 30px rgba(34,197,94,.08);
        transition: .45s;
    }

    .school-logo:hover img {
        transform: translateY(-8px) rotate(-4deg) scale(1.04);
    }

/* CONTENT */

.school-content {
    flex: 1;
}

/* BADGE */

.school-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    background: linear-gradient( 135deg, #eff6ff, #ecfdf5 );
    border: 1px solid #dbeafe;
    color: #15803d;
    font-size: 14px;
    font-family: Inter_24pt-SemiBold;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(37,99,235,.08);
}

    .school-badge i {
        color: #2563eb;
        font-size: 15px;
    }

/* TITLE */

.school-content h1 {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.25;
    color: #1e3a8a;
    font-family: OpSan-ExtraBold;
    text-transform: uppercase;
    letter-spacing: -.5px;
    max-width: 760px;
}

.school-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #64748b;
    max-width: 720px;
    margin-bottom: 35px;
    font-family: Inter_24pt-Regular;
}

/* STATS */

.hero-stat {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.stat-box {
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    border: 1px solid rgba(219,234,254,.8);
    transition: .4s;
    box-shadow: 0 15px 35px rgba(15,23,42,.05);
    position: relative;
    overflow: hidden;
}

    .stat-box:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(37,99,235,.05), rgba(34,197,94,.05) );
        opacity: 0;
        transition: .4s;
    }

    .stat-box:hover:before {
        opacity: 1;
    }

    .stat-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(37,99,235,.12);
    }

    .stat-box i {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient( 135deg, #2563eb, #16a34a );
        color: white;
        font-size: 20px;
        box-shadow: 0 12px 24px rgba(37,99,235,.18);
        transition: .4s;
    }

    .stat-box:hover i {
        transform: rotate(-8deg) scale(1.08);
    }

    .stat-box span {
        font-size: 18px;
        color: #0f172a;
        font-family: Inter_24pt-SemiBold;
    }

/* ANIMATION */

@keyframes pulseHero {
    0% {
        transform: scale(.95);
        opacity: .7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(.95);
        opacity: .7;
    }
}

/* RESPONSIVE */

@media(max-width:991px) {
    .hero-left {
        flex-direction: column;
        text-align: center;
    }

    .school-content h1 {
        font-size: 34px;
        margin: auto auto 20px;
    }

    .school-content p {
        margin: auto auto 30px;
    }

    .hero-stat {
        justify-content: center;
    }

    .school-logo img {
        width: 150px;
        height: 150px;
    }
}

@media(max-width:767px) {
    .school-hero {
        padding: 30px 22px;
        border-radius: 28px;
    }

    .school-content h1 {
        font-size: 26px;
    }

    .school-content p {
        font-size: 15px;
    }

    .hero-stat {
        flex-direction: column;
    }

    .stat-box {
        width: 100%;
        min-width: unset;
    }

    .school-logo img {
        width: 130px;
        height: 130px;
    }
}
/* ==========================
   STUDENT SUPPORT BOX
========================== */

.student-box {
    position: relative;
    margin-top: 30px;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient( 145deg, #fffaf0 0%, #ffffff 55%, #f5fff8 100% );
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15,23,42,.06);
    border: 1px solid rgba(255,255,255,.7);
    transition: .45s;
}

.item-form-contact-f {
    position: relative;
}

.form-row .warning {
}
/* hiệu ứng nền */

.student-box::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: rgba(245,158,11,.08);
    filter: blur(40px);
}

.student-box::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(34,197,94,.07);
    filter: blur(40px);
}

.student-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(245,158,11,.12);
}

/* TITLE */

.student-box h4 {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    font-size: 30px;
    color: #c2410c;
    font-family: OpSan-ExtraBold;
    letter-spacing: -.3px;
}

    .student-box h4 i {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient( 135deg, #f97316, #fb923c );
        color: white;
        font-size: 22px;
        box-shadow: 0 16px 30px rgba(249,115,22,.25);
        transition: .4s;
    }

.student-box:hover h4 i {
    transform: rotate(-10deg) scale(1.08);
}

/* LIST */

.student-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.student-box li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226,232,240,.8);
    font-size: 17px;
    color: #1e293b;
    font-family: Inter_24pt-Medium;
    transition: .4s;
    overflow: hidden;
}

    /* icon check */

    .student-box li::before {
        content: "✓";
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient( 135deg, #16a34a, #22c55e );
        color: white;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 10px 20px rgba(34,197,94,.18);
    }

    /* hiệu ứng shine */

    .student-box li::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,.35);
        transform: skewX(-20deg);
        transition: .7s;
    }

    .student-box li:hover::after {
        left: 120%;
    }

    /* hover item */

    .student-box li:hover {
        transform: translateX(10px);
        background: white;
        border-color: #fde68a;
        box-shadow: 0 18px 35px rgba(245,158,11,.12);
    }

/* MOBILE */

@media(max-width:767px) {
    .student-box {
        padding: 24px;
        border-radius: 28px;
    }

        .student-box h4 {
            font-size: 24px;
        }

    .contact-card h3 {
        font-size: 24px;
    }

    .student-box h4 i {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .student-box li {
        padding: 16px;
        font-size: 15px;
    }
}

/* VALIDATION */

.item-form-contact-f {
    position: relative;
    margin-bottom: 0;
}

.warning {
    display: block;
    margin-top: 8px;
    color: #dc2626;
    font-size: 13px;
    font-family: Inter_24pt-Medium;
    padding-left: 6px;
}

.validation-summary {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 18px 22px;
    border-radius: 18px;
    margin-bottom: 25px;
}

    .validation-summary ul {
        margin: 12px 0 0;
        padding-left: 18px;
    }

    .validation-summary li {
        color: #dc2626;
        line-height: 1.8;
    }

.contact-success {
    display: block;
    margin-top: 25px;
    padding: 18px 22px;
    background: #dcfce7;
    color: #166534;
    border-radius: 18px;
    font-family: Inter_24pt-SemiBold;
}

.contact-error {
    display: block;
    margin-top: 25px;
    padding: 18px 22px;
    background: #fff1f2;
    color: #dc2626;
    border-radius: 18px;
    font-family: Inter_24pt-SemiBold;
}

/* INPUT LỖI */

input.error,
textarea.error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}