/**
 * Washington Home Improvements - Contact Page Styles
 * Modern design with animations and interactive elements
 */

/* ========================================
   HERO SECTION - GRADIENT BACKGROUND
   ======================================== */

.contact-hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
    overflow: hidden;
    padding: calc(var(--space-3xl) * 2) 0;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 145, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(135, 206, 235, 0.1) 0%, transparent 50%);
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-hero-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge-contact {
    display: inline-block;
    background: linear-gradient(135deg, #ff9100, #ff7c00);
    color: white;
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
}

.contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #87CEEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #87CEEB;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

/* Hero Quick Contact Cards */
.hero-quick-contact {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.quick-contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 145, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-contact-card:hover {
    background: rgba(255, 145, 0, 0.2);
    border-color: #ff9100;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 145, 0, 0.3);
}

.quick-contact-icon {
    font-size: 2.5rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.quick-contact-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.quick-contact-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.quick-contact-label {
    font-size: 0.875rem;
    color: #87CEEB;
    font-weight: 600;
}

.quick-contact-value {
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================================
   MAIN CONTACT SECTION - TWO COLUMN LAYOUT
   ======================================== */

.contact-main-section {
    padding: calc(var(--space-3xl) * 2) 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* ========================================
   LEFT COLUMN - CONTACT INFORMATION
   ======================================== */

.contact-info-column {
    position: relative;
}

.contact-info-sticky {
    position: sticky;
    top: 100px;
}

.contact-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: var(--space-2xl);
}

/* Contact Method Cards */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-method-card {
    display: flex;
    gap: var(--space-lg);
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    border-color: #ff9100;
    box-shadow: 0 8px 24px rgba(255, 145, 0, 0.15);
    transform: translateX(5px);
}

.contact-method-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.1), rgba(255, 145, 0, 0.2));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-method-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.contact-method-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff9100;
    display: block;
    margin-bottom: var(--space-xs);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-method-value:hover {
    color: #ff7c00;
}

.contact-method-note {
    font-size: 0.875rem;
    color: #718096;
}

/* Business Hours Card */
.business-hours-card {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    color: white;
}

.business-hours-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff9100;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.business-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
}

.business-hours-day {
    font-weight: 600;
    color: #87CEEB;
}

.business-hours-time {
    font-weight: 700;
    color: white;
}

.emergency-note {
    background: rgba(255, 145, 0, 0.1);
    border: 2px solid rgba(255, 145, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffa500;
}

.emergency-icon {
    font-size: 1.25rem;
}

/* ========================================
   RIGHT COLUMN - QUOTE FORM
   ======================================== */

.contact-form-column {
    position: relative;
}

.contact-form-wrapper {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.contact-form-header {
    margin-bottom: var(--space-2xl);
}

.contact-form-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #1a2332;
    margin-bottom: var(--space-sm);
}

.contact-form-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Modern Contact Form */
.modern-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.modern-contact-form .form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.modern-contact-form .form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.875rem;
    color: #718096;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 var(--space-xs);
}

.modern-contact-form .form-group input,
.modern-contact-form .form-group select,
.modern-contact-form .form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    color: #1a2332;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modern-contact-form .form-group input:focus,
.modern-contact-form .form-group select:focus,
.modern-contact-form .form-group textarea:focus {
    outline: none;
    border-color: #ff9100;
    box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.1);
}

.modern-contact-form .form-group input:focus + label,
.modern-contact-form .form-group input:not(:placeholder-shown) + label,
.modern-contact-form .form-group select:focus + label,
.modern-contact-form .form-group select:not([value=""]) + label,
.modern-contact-form .form-group textarea:focus + label,
.modern-contact-form .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: #ff9100;
    font-weight: 600;
}

.modern-contact-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Custom Checkbox */
.form-checkbox-group {
    margin-bottom: var(--space-xl);
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-mark {
    position: relative;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.custom-checkbox:hover .checkbox-mark {
    border-color: #ff9100;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-mark {
    background: linear-gradient(135deg, #ff9100, #ff7c00);
    border-color: #ff9100;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    margin-bottom: var(--space-lg);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Form Trust Badges */
.form-trust-badges {
    display: flex;
    justify-content: space-around;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid #e2e8f0;
}

.form-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
    text-align: center;
}

.form-trust-badge-icon {
    font-size: 1.5rem;
}

/* ========================================
   SERVICE AREAS SECTION
   ======================================== */

.service-areas-section {
    padding: calc(var(--space-3xl) * 2) 0;
    background: white;
}

.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.service-area-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #f8f9fa;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-area-card:hover {
    background: rgba(255, 145, 0, 0.05);
    border-color: #ff9100;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.15);
}

.area-icon {
    font-size: 1.25rem;
    color: #ff9100;
}

.area-icon img,
img.area-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.area-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2332;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */

.why-choose-contact-section {
    padding: calc(var(--space-3xl) * 2) 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Contact Page Why Choose Cards - Dark Blue Theme */

.why-choose-contact-section .why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.why-choose-contact-section .why-choose-card {
    background: linear-gradient(135deg, #1a2332 0%, #2a3e50 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid rgba(255, 145, 0, 0.3);
    transition: all 0.3s ease;
}

.why-choose-contact-section .why-choose-card:hover {
    border-color: #ff9100;
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.25);
    transform: translateY(-8px);
}

.why-choose-contact-section .why-choose-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-choose-contact-section .why-choose-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.why-choose-contact-section .why-choose-card:hover .why-choose-icon img {
    transform: scale(1.1);
}

.why-choose-contact-section .why-choose-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff9100;
    margin-bottom: var(--space-md);
}

.why-choose-contact-section .why-choose-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   EMERGENCY CTA SECTION
   ======================================== */

.emergency-cta-section {
    position: relative;
    padding: calc(var(--space-3xl) * 2) 0;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    overflow: hidden;
}

.emergency-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: emergencyPulse 3s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.emergency-cta-content {
    position: relative;
    z-index: 2;
}

.emergency-cta-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.emergency-icon-large {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    animation: emergencyBounce 2s ease-in-out infinite;
}

@keyframes emergencyBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.emergency-cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.emergency-cta-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.btn-emergency {
    background: white;
    color: #dc2626;
    border: none;
    font-size: 1.25rem;
    font-weight: 800;
    padding: var(--space-lg) var(--space-3xl);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-emergency:hover {
    background: #fef3c7;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-emergency .btn-icon {
    font-size: 1.75rem;
    animation: phoneRing 1s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-info-sticky {
        position: static;
    }

    .hero-quick-contact {
        flex-direction: column;
    }

    .quick-contact-card {
        width: 100%;
        justify-content: center;
    }

    .service-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 968px) {
    .why-choose-contact-section .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-hero-section {
        min-height: 400px;
        padding: var(--space-3xl) 0;
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }

    .service-areas-grid {
        grid-template-columns: 1fr;
    }

    .form-trust-badges {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .emergency-icon-large {
        font-size: 3.5rem;
    }

    .why-choose-contact-section .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-contact-section .why-choose-card {
        padding: var(--space-xl);
    }

    .why-choose-contact-section .why-choose-title {
        font-size: 1.125rem;
    }

    .why-choose-contact-section .why-choose-description {
        font-size: 0.875rem;
    }

    .business-hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    /* Hide icons and center content on mobile */
    .quick-contact-icon {
        display: none;
    }

    .quick-contact-card {
        justify-content: center;
        text-align: center;
    }

    .quick-contact-text {
        align-items: center;
    }
}
