/* Contact Page Styles */
.contact-page-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
}

.contact-gradient-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.contact-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 40% 60%;
        align-items: stretch;
    }
}

.contact-info {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 40px 30px;
    border-radius: 10px;
    color: #fff;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-details {
    margin: 0;
    width: 100%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.contact-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-text h3 {
    color: #fff;
    margin: 0 8px 0 0;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
}

.contact-text p,
.contact-text a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-text a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Contact Form Container */
.contact-form-container {
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    background: #fff;
}

.form-wrapper {
    max-width: 100%;
}

.form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.form-wrapper h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Form Styles */
.wpcf7-form {
    display: grid;
    gap: 20px;
}

.wpcf7-form p {
    margin: 0 0 0;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-color);
}
.wpcf7-form-control-wrap {
    margin-bottom:0;
}

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 0, 0, 0), 0.1);
}

.wpcf7-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px !important;
    border-radius: 5px;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    display: inline-block;
}

.wpcf7-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Map Styles */
.map-container {
    grid-column: 1 / -1;
    margin: 0 -40px -40px;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

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

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .map-container {
        margin: 0 -25px -30px;
    }
}

@media (max-width: 767px) {
    .contact-gradient-bg {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 0;
    }
    
    .wpcf7-form {
        gap: 15px;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .contact-card {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Print Styles */
@media print {
    .contact-gradient-bg {
        background: none !important;
        padding: 0;
    }
    
    .contact-grid {
        box-shadow: none !important;
        max-width: 100% !important;
    }
    
    .contact-form-container {
        display: none;
    }
}

/* Success/Error Messages */
.wpcf7-response-output {
    margin: 1rem 0 0 !important;
    padding: 1rem !important;
    border-radius: 5px;
}

.wpcf7-mail-sent-ok {
    border: 2px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked,
.wpcf7-not-valid-tip {
    color: #ef4444 !important;
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
}
