/* ===============================================
   ECOFERT GHANA - CONTACT PAGE STYLING
   Modern Contact Page Design with Green, Yellow, White Theme
   =============================================== */

/* CSS Variables (inheriting from main.css) */
:root {
    /* Primary Colors */
    --primary-green: #2e7d32;
    --primary-green-dark: #1b5e20;
    --primary-green-light: #4caf50;
    --secondary-yellow: #ffeb3b;
    --secondary-yellow-dark: #f57f17;
    --secondary-yellow-light: #fff176;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e8f5e8;
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-medium: #424242;
    --text-light: #666666;
    --border-light: #e0e0e0;
    
    /* Gradients */
    --green-gradient: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    --yellow-gradient: linear-gradient(135deg, var(--secondary-yellow) 0%, var(--secondary-yellow-light) 100%);
    --hero-gradient: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 50%, var(--secondary-yellow) 100%);
    --card-gradient: linear-gradient(145deg, var(--pure-white) 0%, var(--light-gray) 100%);
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(46, 125, 50, 0.1);
    --shadow-medium: 0 4px 20px rgba(46, 125, 50, 0.15);
    --shadow-heavy: 0 8px 30px rgba(46, 125, 50, 0.2);
    --shadow-card: 0 6px 25px rgba(46, 125, 50, 0.12);
    --shadow-hover: 0 12px 40px rgba(46, 125, 50, 0.25);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ===============================================
   CONTACT PAGE LAYOUT
   =============================================== */

.contact-page {
    margin-top: 80px; /* Account for fixed header */
    min-height: calc(100vh - 80px);
    background: var(--pure-white);
}

/* ===============================================
   CONTACT HERO SECTION
   =============================================== */

#contact-hero {
    background: var(--hero-gradient);
    padding: 4rem 0;
    text-align: center;
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

#contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grain)"/></svg>');
    opacity: 0.4;
}

#contact-hero h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

#contact-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ===============================================
   SECTION PADDING UTILITY
   =============================================== */

.section-padding {
    padding: 4rem 0;
}

/* ===============================================
   CONTAINER UTILITY
   =============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ===============================================
   CONTACT FORM SECTION
   =============================================== */

#contact-form {
    background: var(--light-gray);
}

#contact-form .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Form Container */
.form-container {
    background: var(--card-gradient);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    animation: slideInLeft 0.8s ease-out;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 15px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: var(--pure-white);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-weight: var(--font-weight-normal);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-group textarea {
    min-height: 120px;
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* Submit Button */
.btn-primary {
    background: var(--green-gradient);
    color: var(--pure-white);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ===============================================
   CONTACT INFORMATION
   =============================================== */

.contact-info {
    background: var(--card-gradient);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    animation: slideInRight 0.8s ease-out;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 0.25rem;
    width: 30px;
    text-align: center;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-smooth);
}

.info-item a:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

/* ===============================================
   MAP CONTAINER
   =============================================== */

.map-container {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.map-container h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.map-container iframe:hover {
    box-shadow: var(--shadow-heavy);
}

/* ===============================================
   SOCIAL MEDIA LINKS
   =============================================== */

.social-media-links {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.social-media-links h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--green-gradient);
    color: var(--pure-white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.social-icons a:hover {
    background: var(--secondary-yellow);
    color: var(--primary-green);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* ===============================================
   BUSINESS HOURS SECTION
   =============================================== */

#business-hours {
    background: var(--pure-white);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hours-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hours-card {
    background: var(--card-gradient);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out;
}

.hours-card:nth-child(2) { animation-delay: 0.1s; }
.hours-card:nth-child(3) { animation-delay: 0.2s; }

.hours-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
}

.hours-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.hours-card:hover .hours-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.hours-icon i {
    font-size: 2rem;
    color: var(--primary-green);
}

.hours-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.day:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

.time {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
}

.day.weekend {
    background: var(--light-gray);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

/* Holiday and Emergency Cards */
.holiday-card .hours-icon,
.emergency-card .hours-icon {
    background: var(--green-gradient);
}

.holiday-card .hours-icon i,
.emergency-card .hours-icon i {
    color: var(--pure-white);
}

.holiday-notice,
.emergency-content {
    text-align: left;
}

.holiday-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.holiday-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-medium);
}

.holiday-list li:last-child {
    border-bottom: none;
}

.holiday-note,
.emergency-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.emergency-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    color: var(--pure-white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    margin: 1rem 0;
    transition: var(--transition-smooth);
}

.emergency-button:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===============================================
   CALL TO ACTION SECTION
   =============================================== */

#cta-contact {
    background: var(--green-gradient);
    color: var(--pure-white);
}

#cta-contact h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background: var(--pure-white);
    color: var(--primary-green);
    border: 2px solid var(--pure-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-light:hover {
    background: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    color: var(--primary-green);
}

.btn-outline-light:hover {
    background: var(--pure-white);
    color: var(--primary-green);
}

/* ===============================================
   LIVE CHAT SECTION
   =============================================== */

#live-chat {
    background: var(--light-gray);
}

.chat-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chat-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.feature-item:nth-child(2) { animation-delay: 0.1s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--pure-white);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.chat-cta {
    text-align: center;
    animation: slideInRight 0.8s ease-out;
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.chat-note {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

.chat-note strong {
    color: var(--primary-green);
}

/* ===============================================
   FAQ SECTION
   =============================================== */

#faq {
    background: var(--pure-white);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.faq-category:nth-child(2) { animation-delay: 0.1s; }
.faq-category:nth-child(3) { animation-delay: 0.2s; }
.faq-category:nth-child(4) { animation-delay: 0.3s; }

.faq-category h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-category h3 i {
    font-size: 1.25rem;
    color: var(--secondary-yellow);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--primary-green);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--light-gray);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: var(--secondary-yellow);
    color: var(--primary-green);
}

.faq-question.active {
    background: var(--primary-green);
    color: var(--pure-white);
}

.faq-question i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    background: var(--pure-white);
    overflow: hidden;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 1.5rem 0;
}

.faq-answer ul,
.faq-answer ol {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.faq-cta p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* ===============================================
   CUSTOMER SERVICE POLICIES SECTION
   =============================================== */

#customer-service {
    background: var(--light-gray);
}

.policies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.policy-card {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out;
}

.policy-card:nth-child(2) { animation-delay: 0.1s; }
.policy-card:nth-child(3) { animation-delay: 0.2s; }
.policy-card:nth-child(4) { animation-delay: 0.3s; }
.policy-card:nth-child(5) { animation-delay: 0.4s; }
.policy-card:nth-child(6) { animation-delay: 0.5s; }

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
}

.policy-icon {
    width: 60px;
    height: 60px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.policy-card:hover .policy-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.policy-icon i {
    font-size: 1.5rem;
    color: var(--pure-white);
}

.policy-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.policy-content {
    color: var(--text-medium);
    line-height: 1.7;
}

.policy-content ul {
    list-style: none;
    padding: 0;
}

.policy-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.policy-content li:last-child {
    border-bottom: none;
}

.policy-content strong {
    color: var(--primary-green);
    font-weight: var(--font-weight-semibold);
}

.policy-content a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.policy-content a:hover {
    text-decoration: underline;
}

.policy-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-yellow);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 15px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-smooth);
}

.policy-link:hover {
    background: var(--secondary-yellow-dark);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.policy-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.policy-contact h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.policy-contact p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.policy-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--pure-white);
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

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

@media (max-width: 1024px) {
    #contact-form .container {
        gap: 3rem;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Contact Hero Mobile */
    #contact-hero h1 {
        font-size: 2.5rem;
    }
    
    #contact-hero p {
        font-size: 1rem;
    }
    
    /* Contact Form Mobile */
    #contact-form .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-container,
    .contact-info {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hours-container {
        grid-template-columns: 1fr;
    }
    
    .chat-features {
        grid-template-columns: 1fr;
    }
    
    .policies-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons,
    .policy-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn,
    .policy-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        margin-top: 70px;
    }
    
    #contact-hero h1 {
        font-size: 2rem;
    }
    
    .form-container,
    .contact-info {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hours-card,
    .policy-card {
        padding: 1.5rem;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===============================================
   ACCESSIBILITY IMPROVEMENTS
   =============================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-yellow);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #1b5e20;
        --secondary-yellow: #ffc107;
        --text-dark: #000000;
        --text-medium: #333333;
    }
}

/* Print styles */
@media print {
    #contact-hero {
        background: none !important;
        color: #000 !important;
    }
    
    .form-container,
    .contact-info,
    .hours-card,
    .policy-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .social-icons,
    .cta-buttons,
    .policy-buttons {
        display: none !important;
    }
    
    .faq-answer {
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* ===============================================
   FORM VALIDATION STYLES
   =============================================== */

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.success-message {
    color: var(--primary-green);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===============================================
   LOADING STATES
   =============================================== */

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--pure-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
