/* Import shared styles */
@import url('home.css');

/* Improved Contact Page Styles */
.contact-hero {
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-invert);
    overflow: hidden;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--nav-height) + 2rem) 0 4rem;
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/YaahmanWebPicture/img-16.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.contact-hero .hero-text {
    max-width: 600px;
}

.contact-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-hero .hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 100%;
}

.hero-stats {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-invert);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-suffix {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-invert);
    display: inline-block;
    margin-left: 0.2rem;
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.breadcrumb a {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Cards Section */
.contact-cards-section {
    padding: clamp(2rem, 5vw, 5rem) 0;
    background: var(--bg-body);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.contact-card {
    background: var(--bg-surface);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-info {
    margin-bottom: 2rem;
}

.phone-number, .email-address {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.availability, .response-time {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.3;
}

.card-button {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    max-width: 100%;
}

.card-button:hover {
    background: var(--primary-color);
    color: white;
}

.card-button.primary {
    background: var(--primary-color);
    color: white;
}

.card-button.primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Contact Main Section */
.contact-main-section {
    padding: clamp(2rem, 5vw, 5rem) 0;
    background: var(--bg-highlight);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.form-section {
    background: var(--bg-surface);
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.form-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.form-header p {
    color: var(--text-light);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.4;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    background: var(--bg-surface);
    color: var(--text-main);
    box-sizing: border-box;
    max-width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 117, 26, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    min-width: 100%;
    max-width: 100%;
}

.submit-button {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.info-card {
    background: var(--bg-surface);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.info-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.8rem, 2vw, 1rem) 0;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 24px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.hour-item.emergency {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
}

.location-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.location-detail {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* FAQ Section */
.faq-section {
    padding: clamp(2rem, 5vw, 5rem) 0;
    background: var(--bg-body);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.faq-item {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    background: var(--bg-surface);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.faq-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.faq-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.3;
}

.faq-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* CTA Section */
.cta-section {
    padding: clamp(2rem, 4vw, 4rem) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-invert);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border: 2px solid var(--text-invert);
    background: transparent;
    color: var(--text-invert);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button.primary {
    background: var(--text-invert);
    color: var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 3vw, 3rem);
    }
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        min-width: 140px;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hour-item.emergency {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-hero .hero-content {
        padding: calc(var(--nav-height) + 1rem) 0 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .benefits-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .location-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Mobile menu toggle animation */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-surface);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        overflow-y: auto;
        max-height: calc(100vh - var(--nav-height));
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
}

/* Additional overflow prevention */
.container {
    overflow-x: hidden;
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improved text wrapping */
h1, h2, h3, h4, h5, h6, p, span, li, a, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Better form element handling */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .submit-button:hover,
    .cta-button:hover,
    .card-button:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .submit-button:active,
    .cta-button:active,
    .card-button:active {
        transform: scale(0.98);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-hero {
        background: var(--primary-color);
    }
    
    .contact-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}