/* ===== Contact Page Styles ===== */

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 0px,
        rgba(255,255,255,0.05) 20px,
        transparent 20px,
        transparent 40px
    );
    animation: moveBg 20s linear infinite;
}

@keyframes moveBg {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(10deg); }
}

/* Contact Info Cards */
.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-card:hover::before {
    transform: translateY(0);
}

.contact-icon {
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card:hover .contact-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(360deg);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.map-container iframe {
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Form Card */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.card-header {
    background: var(--gradient-primary);
    border-bottom: none;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.form-control, .input-group-text {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.input-group-text {
    background: #f8f9fc;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Button */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    animation: slideInDown 0.5s;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* FAQ Cards */
.faq-card {
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.faq-card:hover {
    background: var(--gradient-primary) !important;
    color: white;
}

.faq-card:hover h5,
.faq-card:hover p {
    color: white !important;
}

.faq-card:hover i {
    color: white !important;
}

/* Social Icons */
.social-icons .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons .btn:hover {
    transform: translateY(-3px);
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Loading Button */
#loadingBtn .spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 1.8rem;
    }
    
    .contact-card h4 {
        font-size: 1.2rem;
    }
}

/* Animation on Scroll */
[data-aos] {
    transition-timing-function: ease-out;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}