/**
 * Coffee Shop V2 - Contact Page
 * Modern elegant design with interactive elements
 */

/* ============================================
   PAGE HEADER
   ============================================ */

.contact-page-header {
    background: linear-gradient(135deg, #0f1f3d 0%, #1e3a5f 100%);
    padding: 5rem 0 4rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    animation: headerPulse 10s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.contact-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    color: #fff;
}

.contact-page-header p {
    font-size: 1.2rem;
    opacity: 0.95 !important;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-header-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.contact-header-icon {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.contact-header-icon i {
    font-size: 2.5rem;
    color: #d4a574;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-header-icon span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   CONTACT INFO CARD
   ============================================ */

.contact-info-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 77, 62, 0.1);
    height: 100%;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.contact-info-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F0F0;
    opacity: 1 !important;
}

.contact-info-card h4 i {
    color: #d4a574;
}

.contact-info-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.03), rgba(45, 111, 95, 0.03));
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-info-item:hover {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.08), rgba(45, 111, 95, 0.08));
    border-left-color: #d4a574;
    transform: translateX(5px);
}

.contact-info-item h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 1 !important;
}

.contact-info-item h6 i {
    color: #d4a574;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.contact-info-item p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    opacity: 1 !important;
}

.contact-info-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #d4a574;
}

/* Social Media Section */
.social-media-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #F0F0F0;
}

.social-media-section h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.25rem;
    opacity: 1 !important;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
}

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

.social-btn.facebook {
    color: #1877F2;
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-btn.instagram {
    color: #E4405F;
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.05);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
    border-color: transparent;
}

.social-btn.youtube {
    color: #FF0000;
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.05);
}

.social-btn.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-btn.zalo {
    color: #0068FF;
    border-color: #0068FF;
    background: rgba(0, 104, 255, 0.05);
}

.social-btn.zalo:hover {
    background: #0068FF;
    color: white;
}

/* ============================================
   CONTACT FORM CARD
   ============================================ */

.contact-form-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 77, 62, 0.1);
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.contact-form-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F0F0;
    opacity: 1 !important;
}

.contact-form-card h4 i {
    color: #d4a574;
}

/* Form Styling */
.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 1 !important;
}

.contact-form .form-label .text-danger {
    color: #DC3545;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #d4a574;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit-contact {
    background: linear-gradient(135deg, #1e3a5f, #2d4f7a);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(27, 77, 62, 0.3);
}

.btn-submit-contact:hover {
    background: linear-gradient(135deg, #2d4f7a, #3a5f8f);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 77, 62, 0.4);
    color: white;
}

.btn-submit-contact:active {
    transform: translateY(-1px);
}

/* ============================================
   ALERTS
   ============================================ */

.alert-modern {
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.alert-modern.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.1));
    border-left: 4px solid #28A745;
    color: #155724;
}

.alert-modern.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    border-left: 4px solid #DC3545;
    color: #721C24;
}

.alert-modern ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-modern li {
    opacity: 1 !important;
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 3px solid #F0F0F0;
}

.map-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 1 !important;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   QUICK CONTACT BADGES
   ============================================ */

.quick-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.quick-contact-badge {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-contact-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #d4a574;
}

.quick-contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4a574, #e6b885);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.quick-contact-text h6 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    opacity: 1 !important;
}

.quick-contact-text p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 1 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .contact-page-header {
        padding: 4rem 0 3rem;
    }

    .contact-page-header h1 {
        font-size: 2.25rem;
    }

    .contact-header-icons {
        gap: 2rem;
    }

    .contact-info-card {
        position: static;
        margin-bottom: 2rem;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .quick-contact-badges {
        flex-direction: column;
    }

    .quick-contact-badge {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .contact-page-header {
        padding: 3rem 0 2rem;
    }

    .contact-page-header h1 {
        font-size: 1.75rem;
    }

    .contact-page-header p {
        font-size: 1rem;
    }

    .contact-header-icons {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .contact-header-icon i {
        font-size: 2rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .contact-info-card h4,
    .contact-form-card h4 {
        font-size: 1.25rem;
    }

    .btn-submit-contact {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
    }

    .map-section h3 {
        font-size: 2rem;
    }

    .social-buttons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .contact-page-header h1 {
        font-size: 1.5rem;
    }

    .contact-header-icons {
        flex-direction: column;
        gap: 1rem;
    }

    .map-container {
        border-radius: 15px;
    }

    .quick-contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   FORM VALIDATION STATES
   ============================================ */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #DC3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28A745;
}

.invalid-feedback,
.valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ============================================
   LOADING STATE
   ============================================ */

.btn-submit-contact.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit-contact.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
