/**
 * TutorTech Contact Page - Professional Styling
 * Namespace: contact-
 * Modern, clean, and user-friendly design
 */

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A2463 0%, #247BA0 100%);
    background-image: url('../images/contact-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.90) 0%, rgba(36, 123, 160, 0.85) 100%);
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 20px 40px;
}

.contact-hero-badge {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: contact-pulse 2s ease-in-out infinite;
}

.contact-hero-badge i {
    font-size: 2.5rem;
    color: #FFB800;
}

@keyframes contact-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 184, 0, 0);
    }
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFB800;
}

.contact-hero-description {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* ===== MAIN CONTACT SECTION ===== */
.contact-main-section {
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

/* ===== CONTACT FORM CONTAINER ===== */
.contact-form-container {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h2 i {
    color: #FFB800;
}

.form-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== FORM STYLING ===== */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form .form-label i {
    color: #0A2463;
    font-size: 0.9rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form .form-control:focus {
    border-color: #0A2463;
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 36, 99, 0.1);
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* ===== FORM FOOTER ===== */
.form-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.contact-submit-btn {
    position: relative;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-submit-btn .btn-loader {
    display: none;
    margin-left: 10px;
}

.contact-submit-btn.loading .btn-loader {
    display: inline;
}

.contact-submit-btn.loading i:not(.fa-spin) {
    display: none;
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-note i {
    color: #4CAF50;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: contact-slideDown 0.4s ease;
}

@keyframes contact-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.alert-success i {
    font-size: 1.5rem;
}

.alert-danger {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.alert-danger i {
    font-size: 1.5rem;
}

/* ===== CONTACT INFO SIDEBAR ===== */
.contact-info-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 30px;
}

.sidebar-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h2 i {
    color: #0A2463;
}

.sidebar-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 4px solid #0A2463;
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0A2463 0%, #247BA0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.info-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.info-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-content a {
    color: #0A2463;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #247BA0;
    text-decoration: underline;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.info-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

.info-note i {
    color: #4CAF50;
    margin-right: 5px;
}

.sales-contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ===== SOCIAL MEDIA ===== */
.contact-social {
    background: linear-gradient(135deg, #0A2463 0%, #247BA0 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    text-align: center;
}

.contact-social h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #fff;
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    color: #0077B5;
}

.social-link.twitter:hover {
    color: #1DA1F2;
}

.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.instagram:hover {
    color: #E4405F;
}

/* ===== WHY CONTACT SECTION ===== */
.why-contact-section {
    background: #fff;
}

.why-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    text-align: center;
    padding: 35px 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-top: 4px solid #0A2463;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0A2463 0%, #247BA0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-icon i {
    font-size: 2rem;
    color: #fff;
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ===== MAP SECTION ===== */
.contact-map-section {
    position: relative;
}

.map-container {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.map-info-box {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    pointer-events: all;
}

.map-info-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info-box h3 i {
    color: #FFB800;
}

.map-info-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== FAQ SECTION ===== */
.contact-faq-section {
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question > i:first-child {
    color: #0A2463;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-question span {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.faq-toggle {
    color: #666;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 25px 20px 65px;
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-sidebar {
        position: static;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .map-info-box {
        position: static;
        margin: 20px;
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .why-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-info-box {
        margin: 15px;
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .contact-hero-badge {
        width: 70px;
        height: 70px;
    }
    
    .contact-hero-badge i {
        font-size: 2rem;
    }
    
    .contact-hero-title {
        font-size: 1.75rem;
    }
    
    .form-header h2 {
        font-size: 1.4rem;
    }
    
    .contact-submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding-left: 25px;
    }
}

/* Print Styles */
@media print {
    .contact-hero,
    .why-contact-section,
    .contact-map-section,
    .contact-faq-section,
    .contact-social {
        display: none;
    }
    
    .contact-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}