/* ===== CONTACT HERO ===== */
.contact-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0b1120 0%, #19223f 50%, #2d1b4b 100%);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 8px 22px;
    border-radius: 60px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-badge i {
    color: #ffd966;
}

.contact-title {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-title span {
    background: linear-gradient(135deg, #FFD966, #FF8A5C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 1.2rem;
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255,255,255,0.92);
}

/* ===== MAIN CONTACT SECTION ===== */
.contact-main {
    max-width: 1280px;
    margin: -55px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: 0 35px 60px -25px rgba(0, 0, 0, 0.25);
}

/* Contact Form Section */
.contact-form-section {
    padding: 48px 44px;
}

.contact-form-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #4b5563;
    margin-bottom: 32px;
    font-size: 0.95rem;
    border-left: 3px solid #da0b4e;
    padding-left: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 26px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.form-group label i {
    color: #da0b4e;
}

.form-group label .required-star {
    color: #dc2626;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.25s ease;
    font-family: inherit;
    background: #fefefe;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #da0b4e;
    background: white;
    box-shadow: 0 0 0 4px rgba(218, 11, 78, 0.08);
}

/* Error state styling */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc2626;
    background-color: #fff5f5;
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 0.7rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* reCAPTCHA styling */
.captcha-wrapper {
    margin: 25px 0 20px;
    display: flex;
    justify-content: center;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(105deg, #da0b4e 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 34px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 18px rgba(218, 11, 78, 0.2);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px -12px rgba(218, 11, 78, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Flash Messages */
.flash-message {
    padding: 16px 22px;
    border-radius: 60px;
    margin-bottom: 28px;
    display: none;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    animation: slideIn 0.4s ease forwards;
}

.flash-message.success {
    background: linear-gradient(115deg, #0a5c3e, #10b981);
    color: white;
    box-shadow: 0 15px 30px -12px rgba(16, 185, 129, 0.4);
    border-left: 5px solid #ffd966;
}

.flash-message.error {
    background: linear-gradient(115deg, #991b1b, #dc2626);
    color: white;
    box-shadow: 0 15px 30px -12px rgba(220, 38, 38, 0.4);
    border-left: 5px solid #fbbf24;
}

.flash-message.show {
    display: flex;
}

.flash-message i {
    font-size: 1.4rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Info Section */
.contact-info-section {
    background: linear-gradient(125deg, #0b1120 0%, #141c32 100%);
    padding: 48px 44px;
    color: white;
}

.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.info-description {
    color: #cbd5e6;
    line-height: 1.55;
    margin-bottom: 38px;
    font-size: 0.95rem;
}

.info-card {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 215, 0, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.4rem;
    color: #ffd966;
}

.info-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.info-content p, .info-content a {
    color: #cbd5e6;
    line-height: 1.45;
    font-size: 0.92rem;
    text-decoration: none;
}

.info-content a:hover {
    color: #ffd966;
}

.email-link {
    color: #ffd966 !important;
    font-weight: 600;
}

.tutor-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 28px 22px;
    margin-top: 28px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.tutor-card i {
    font-size: 2.6rem;
    color: #ffd966;
    margin-bottom: 14px;
}

.tutor-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.tutor-card p {
    color: rgba(255,255,245,0.85);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tutor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(115deg, #ffd966, #ffaa33);
    color: #0b1120;
    padding: 2px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s;
}

.tutor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px -10px rgba(255, 215, 0, 0.45);
}

.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 6px 14px;
    border-radius: 80px;
    font-size: 0.7rem;
    margin-top: 18px;
}

.map-section {
    max-width: 1280px;
    margin: 0 auto 55px;
    padding: 0 24px;
}

.map-container {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 12px 28px -12px rgba(0,0,0,0.12);
}

.map-container iframe {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
}

.social-connect {
    max-width: 1280px;
    margin: 0 auto 70px;
    padding: 0 24px;
    text-align: center;
}

.social-connect h3 {
    font-size: 1.7rem;
    margin-bottom: 28px;
    font-weight: 700;
    color: #0b1120;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-icon {
    width: 58px;
    height: 58px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2edf2;
    color: #da0b4e;
    font-size: 1.4rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
    color: white;
    transform: translateY(-6px);
    border-color: transparent;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-section {
        order: -1;
    }
    .contact-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-form-section, .contact-info-section {
        padding: 32px 24px;
    }
    .contact-title {
        font-size: 2.2rem;
    }
    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 500px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .info-icon {
        margin: 0 auto;
    }
    .g-recaptcha {
        transform: scale(0.75);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-grid {
    animation: fadeInUp 0.55s ease forwards;
}