/**
 * Contact Page Styles
 * My Best Windows & Glass Child Theme
 */

/* ========================================
   CONTACT HERO
   ======================================== */
/* Page wrapper */
.bwg-page-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
}

.bwg-contact-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.bwg-contact-hero .bwg-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 61, 122, 0.85) 100%);
    z-index: 1;
}

.bwg-contact-hero-content {
    position: relative;
    z-index: 2;
}

.bwg-contact-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bwg-contact-subtitle {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* ========================================
   CONTACT METHODS
   ======================================== */
.bwg-contact-methods {
    padding: 80px 0;
    background: var(--bwg-light-gray);
    position: relative;
}

.bwg-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.bwg-method-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bwg-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
}

.bwg-method-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.bwg-method-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 10px;
}

.bwg-method-card > p {
    font-size: 16px;
    color: var(--bwg-text);
    margin-bottom: 15px;
}

.bwg-method-link {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--bwg-primary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.bwg-method-link:hover {
    color: var(--bwg-primary-dark);
}

.bwg-method-hours {
    display: block;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */
.bwg-contact-form-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.bwg-contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.bwg-form-header {
    margin-bottom: 35px;
}

.bwg-form-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-form-header p {
    font-size: 18px;
    color: var(--bwg-text);
    line-height: 1.6;
}

/* Form Styles */
.bwg-contact-form {
    max-width: 100%;
}

.bwg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bwg-form-group {
    margin-bottom: 25px;
}

.bwg-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--bwg-text);
    margin-bottom: 8px;
}

.bwg-form-group input[type="text"],
.bwg-form-group input[type="email"],
.bwg-form-group input[type="tel"],
.bwg-form-group select,
.bwg-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--bwg-border);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.bwg-form-group input[type="text"]:focus,
.bwg-form-group input[type="email"]:focus,
.bwg-form-group input[type="tel"]:focus,
.bwg-form-group select:focus,
.bwg-form-group textarea:focus {
    outline: none;
    border-color: var(--bwg-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.bwg-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.bwg-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.bwg-form-submit {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
}

.bwg-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.bwg-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bwg-form-message.bwg-form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important;
    opacity: 1;
}

.bwg-form-message.bwg-form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
    opacity: 1;
}

.bwg-form-message.show {
    display: block !important;
    opacity: 1;
}

/* Contact Info Column */
.bwg-contact-info {
    background: var(--bwg-light-gray);
    padding: 40px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.bwg-contact-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 25px;
}

.bwg-contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.bwg-contact-benefits li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--bwg-text);
    margin-bottom: 12px;
    padding-left: 0;
}

.bwg-social-links {
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bwg-border);
}

.bwg-social-links h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-social-icons {
    display: flex;
    gap: 15px;
}

.bwg-social-icon {
    font-size: 32px;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.bwg-social-icon:hover {
    transform: translateY(-3px);
}

.bwg-emergency {
    padding-top: 30px;
    border-top: 2px solid var(--bwg-border);
}

.bwg-emergency h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 10px;
}

.bwg-emergency p {
    font-size: 16px;
    color: var(--bwg-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.bwg-emergency-link {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--bwg-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bwg-emergency-link:hover {
    color: var(--bwg-primary-dark);
}

/* ========================================
   CONTACT MAP
   ======================================== */
.bwg-contact-map {
    padding: 80px 0;
    background: var(--bwg-light-gray);
    position: relative;
}

.bwg-map-header {
    text-align: center;
    margin-bottom: 40px;
}

.bwg-map-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-map-header p {
    font-size: 18px;
    color: var(--bwg-text);
}

.bwg-map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

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

/* Legacy placeholder styles (kept for compatibility) */
.bwg-map-placeholder {
    background: #ffffff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bwg-map-content {
    color: var(--bwg-text);
}

.bwg-map-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .bwg-contact-hero-content h1,
    .bwg-form-header h2,
    .bwg-map-header h2 {
        font-size: 36px;
    }
    
    .bwg-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .bwg-contact-info {
        position: static;
    }
    
    .bwg-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bwg-contact-hero {
        padding: 80px 0 60px;
    }
    
    .bwg-contact-hero-content h1 {
        font-size: 36px;
    }
    
    .bwg-contact-subtitle {
        font-size: 18px;
    }
    
    .bwg-contact-methods,
    .bwg-contact-form-section,
    .bwg-contact-map {
        padding: 60px 0;
    }
    
    .bwg-methods-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bwg-form-header h2,
    .bwg-map-header h2 {
        font-size: 32px;
    }
    
    .bwg-contact-info {
        padding: 30px 25px;
    }
    
    .bwg-map-wrapper iframe {
        height: 350px;
    }
    
    .bwg-map-placeholder {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .bwg-contact-hero-content h1 {
        font-size: 32px;
    }
    
    .bwg-form-header h2,
    .bwg-map-header h2 {
        font-size: 28px;
    }
    
    .bwg-method-card {
        padding: 30px 20px;
    }
    
    .bwg-contact-info {
        padding: 25px 20px;
    }
    
    .bwg-map-wrapper iframe {
        height: 300px;
    }
}

