/**
 * Contact Us Page Styles
 * Designed to integrate with WordPress/TheGem theme
 * Uses CSS variables and theme classes where possible
 */

/* =================================================================
   Override TheGem's excessive padding on block-content
   ================================================================= */
.page-id-1609 .block-content {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.page-id-1609 .block-content:last-of-type {
    padding-bottom: 40px !important;
}

/* Remove extra spacing from the contact page wrapper */
.page-id-1609 .contact-us-page {
    margin-bottom: 0;
}

/* =================================================================
   Hero Section
   ================================================================= */
.vc_custom_contact_hero {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
    background-color: #f8f9fa;
}

.vc_custom_contact_hero .gem-title-area {
    max-width: 800px;
    margin: 0 auto;
}

.vc_custom_contact_hero .gem-title-xlarge {
    color: var(--csd-grey);
    margin-bottom: 20px;
}

.vc_custom_contact_hero .gem-title-separator {
    width: 50px;
    height: 3px;
    background-color: var(--csd-yellow);
    margin: 20px auto;
}

.vc_custom_contact_hero .styled-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

/* =================================================================
   Main Content Section
   ================================================================= */
.vc_custom_contact_content {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.contact-info-section,
.contact-form-section {
    padding: 30px;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: var(--csd-grey);
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 600;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* =================================================================
   Contact Items
   ================================================================= */
.contact-details-wrapper {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--csd-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--csd-grey);
}

.contact-info h4 {
    color: var(--csd-grey);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info p {
    color: #666;
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--csd-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--csd-yellow);
}

.contact-meta {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* =================================================================
   Contact Form Section
   ================================================================= */
.contact-form-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.contact-form-wrapper {
    margin-top: 30px;
}

/* Contact Form 7 Styling */
.contact-form-wrapper .wpcf7 {
    width: 100%;
}

.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    color: var(--csd-grey);
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form-wrapper .wpcf7-text,
.contact-form-wrapper .wpcf7-email,
.contact-form-wrapper .wpcf7-tel,
.contact-form-wrapper .wpcf7-textarea,
.contact-form-wrapper .wpcf7-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form-wrapper .wpcf7-text:focus,
.contact-form-wrapper .wpcf7-email:focus,
.contact-form-wrapper .wpcf7-tel:focus,
.contact-form-wrapper .wpcf7-textarea:focus,
.contact-form-wrapper .wpcf7-select:focus {
    border-color: var(--csd-yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 144, 28, 0.1);
}

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

.contact-form-wrapper .wpcf7-submit {
    background: var(--csd-yellow);
    color: var(--csd-grey);
    border: 2px solid var(--csd-yellow);
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-form-wrapper .wpcf7-submit:hover {
    background: transparent;
    color: var(--csd-grey);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-wrapper .wpcf7-spinner {
    margin-left: 10px;
}

.contact-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 4px;
}

.contact-form-wrapper .wpcf7-validation-errors {
    border-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}

/* =================================================================
   Call to Action Section
   ================================================================= */
.vc_custom_contact_cta {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    background-color: var(--csd-grey);
    text-align: center;
}

.vc_custom_contact_cta .cta-content h3 {
    color: #fff;
    margin-bottom: 15px;
}

.vc_custom_contact_cta .cta-content p {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 30px;
}

.vc_custom_contact_cta .gem-button {
    background: var(--csd-yellow);
    color: var(--csd-grey);
    padding: 15px 40px;
    font-weight: 600;
    border: 2px solid var(--csd-yellow);
    transition: all 0.3s ease;
}

.vc_custom_contact_cta .gem-button:hover {
    background: transparent;
    color: var(--csd-yellow);
    border-color: var(--csd-yellow);
}

/* =================================================================
   Responsive Styles
   ================================================================= */
@media (max-width: 991px) {
    .contact-info-section,
    .contact-form-section {
        padding: 20px;
    }
    
    .contact-info-section {
        margin-bottom: 40px;
    }
    
    .vc_custom_contact_hero {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
    
    .vc_custom_contact_content {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 767px) {
    .vc_custom_contact_hero .gem-title-xlarge {
        font-size: 32px;
    }
    
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 24px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .vc_custom_contact_cta {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .contact-form-wrapper .wpcf7-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .contact-form-section {
        padding: 15px;
    }
    
    .vc_custom_contact_hero .styled-subtitle {
        font-size: 16px;
    }
    
    .contact-intro {
        font-size: 14px;
    }
}

/* =================================================================
   Form Placeholder Styling (Remove when actual form is added)
   ================================================================= */
.form-placeholder {
    background: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    border: 2px dashed #ddd;
}

.form-placeholder p {
    margin: 10px 0;
}

.form-placeholder strong {
    color: var(--csd-grey);
    font-size: 18px;
}