/* Contact Page Styles */

.page-header {
    background-image: url('../img/image4.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 18px;
    opacity: 1;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Contact Info Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    padding: 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #0d8fa3);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(23, 162, 184, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #17a2b8, #0d8fa3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    font-size: 32px;
    color: #fff;
}

.contact-card h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 0 20px;
}

.contact-card p {
    color: #64748b;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 25px;
    padding: 0 20px;
}

/* Contact Form Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-form-container .section-header {
    text-align: left;
    margin-bottom: 35px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map Container */
.map-container {
    height: 100%;
    min-height: 550px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #2c3e50;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid #17a2b8;
}

.map-placeholder i {
    font-size: 70px;
    margin-bottom: 18px;
    opacity: 0.7;
    color: #17a2b8;
}

.map-placeholder p {
    font-size: 18px;
    font-weight: 600;
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.success-popup.active {
    display: flex;
}

.success-content {
    background: #fff;
    padding: 50px;
    border-radius: 0;
    text-align: center;
    max-width: 450px;
    animation: popupSlide 0.4s ease;
    border: 3px solid #28a745;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 55px;
    color: #fff;
}

.success-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.success-content p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-content .btn {
    padding: 12px 35px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-card::before {
        height: 3px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        margin: 20px auto 15px;
        font-size: 28px;
    }

    .contact-card h3 {
        font-size: 18px;
        padding: 0 15px;
        margin-bottom: 12px;
    }

    .contact-card p {
        font-size: 13px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .contact-form-container {
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .success-content {
        padding: 40px 30px;
        margin: 0 20px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .success-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 50px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 14px;
    }

    .contact-cards {
        gap: 15px;
    }

    .contact-card {
        padding: 20px;
        border-radius: 8px;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        margin: 15px auto 12px;
        font-size: 24px;
    }

    .contact-card h3 {
        font-size: 16px;
    }

    .contact-card p {
        font-size: 12px;
    }

    .contact-form-container {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .contact-form button {
        padding: 12px;
        font-size: 12px;
    }
}
