﻿/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero */
.contact-hero { 
    position: relative; 
    min-height: 25vh; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ff6b35 50%, #e74c3c 75%, #c0392b 100%);
}

.contact-bg {
    position: relative;
    width: 100%;
    height: 100%;
    /* Layer the original hero image under a warm gradient */
    background:
        linear-gradient(135deg, rgba(255,107,53,0.3) 0%, rgba(247,147,30,0.2) 25%, rgba(231,76,60,0.25) 75%, rgba(192,57,43,0.3) 100%),
        url('/media/quoc_huy.jpg') center 45%/cover no-repeat;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
    display: block;
    opacity: 1;
}

.floating-elements .floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-elements .floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-elements .floating-icon:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 2s; }
.floating-elements .floating-icon:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }
.floating-elements .floating-icon:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }

.contact-content-wrapper {
    background: rgba(139, 69, 19, 0.3);
    border-radius: 20px;
    padding: calc(3rem + 15px) calc(3rem + 15px) calc(4rem + 15px) calc(3rem + 15px);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.contact-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-title {
    font-weight: 800;
    letter-spacing: -1px;
}

.eyebrow {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-buttons .btn {
    padding: .95rem 1.65rem; /* match global */
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Stats Section */
.stats-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-transition {
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), white);
}

/* Official Badge */
.official-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.official-badge::before {
    content: none;
    margin-right: 0.5rem;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
   
    display: flex;
    align-items: center;
    justify-content: center;
    
    
   
    flex-shrink: 0;
}

.contact-details h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin: 0;
}

/* Contact Map */
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    width: 100%;
    position: relative;
    background: #f5f5f5;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    z-index: 10;
    border-radius: 16px;
}

.map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e3e3e3;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-loading-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.map-iframe {
    position: relative;
    z-index: 1;
    display: block;
    background: #f5f5f5;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: #f8f9fa;
    color: #999;
    text-align: center;
    padding: 2rem;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.map-placeholder small {
    color: #999;
}

/* Form Styling */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Contact Methods */
.contact-method {
    transition: all 0.3s ease;
    height: 100%;
}

.contact-method:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.method-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.method-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: translateY(-5px);
}

.contact-method {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

/* Different gradients for each contact method */
.contact-method:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-method:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.contact-method:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.contact-method:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.contact-method h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 1.5rem 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-method p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-method .btn {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

.contact-method .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-method h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero { 
        position: relative; 
        min-height: 25vh; 
        display: flex; 
        align-items: center; 
        overflow: hidden; 
    }
    
    .contact-content-wrapper {
        padding: calc(2rem + 15px);
        margin: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .floating-elements {
        display: block;
    }
    
    .floating-icon {
        font-size: 1.5rem !important;
        opacity: 0.8;
    }
}

/* Equal height row so the map grows down to the last info card */
.equal-cols{ align-items: stretch; }
.equal-cols > [class^="col-"], .equal-cols > [class*=" col-"]{ display:flex; }
.equal-cols .contact-map{ flex:1; height:100%; min-height: 500px; }
.equal-cols .contact-map iframe{ display:block; width:100%; height:100%; min-height: 500px; }

/* Mobile: keep map reasonable */
@media (max-width:991.98px){
  .equal-cols > [class^="col-"], .equal-cols > [class*=" col-"]{ display:block; }
  .equal-cols .contact-map{ min-height: 420px; }
  .equal-cols .contact-map iframe{ height:420px; min-height: 420px; }
  .map-placeholder{ min-height: 420px; }
}


