/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-wrapper {
    background-color: #ffffff;
    padding: 60px 0;
}

/* Contact Info Cards Grid */
.contact-detail-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 44, 89, 0.08);
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(15, 44, 89, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.contact-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 44, 89, 0.09);
    border-color: rgba(217, 4, 41, 0.2);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: rgba(217, 4, 41, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card-icon i {
    font-size: 1.4rem;
    color: var(--accent-red);
}

.contact-detail-card:hover .contact-card-icon {
    background-color: var(--accent-red);
}

.contact-detail-card:hover .contact-card-icon i {
    color: #ffffff;
}

.contact-card-content {
    flex: 1;
    min-width: 0;
}

.contact-card-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.contact-card-link, .contact-card-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-card-link:hover {
    color: var(--accent-red);
}

.contact-card-sub {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Form Styling */
.contact-form-container {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form-title {
    color: var(--accent-red);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.form-control, .form-select {
    padding: 11px 16px;
    font-size: 0.92rem;
    border: 1px solid rgba(15, 44, 89, 0.18);
    border-radius: 6px;
    transition: all 0.25s ease;
    background-color: #fbfcfd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-red);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
    outline: none;
}

.btn-contact-submit {
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.2);
}

.btn-contact-submit:hover {
    background-color: var(--accent-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 4, 41, 0.35);
}

/* Map Styling */
.map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Responsive Exceptions */
@media (max-width: 1199.98px) {
    .contact-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
    }
    
    .contact-card-icon {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .map-wrapper {
        min-height: 300px;
        margin-top: 30px;
    }
}

/* Success Message Popup / Toast Overlay (matches Login page) */
.auth-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 44, 89, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-success-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-success-overlay.show .auth-success-card {
    transform: scale(1);
}

.auth-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px auto;
}

.auth-success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.auth-success-desc {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-success-close {
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-success-close:hover {
    background-color: var(--accent-red);
    color: #ffffff;
}
