/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white-color);
}

.contact-hero .hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Faults Alert Section */
.faults-alert-section {
    padding: 3rem 0 0;
    background: var(--white-color);
}

.faults-alert-card {
    background: #fff5f5;
    border: 2px solid #feb2b2;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.1);
    animation: pulse-border 2s infinite;
}

.faults-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #c53030;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faults-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.faults-info {
    text-align: left;
}

.faults-info h2 {
    font-size: 1.5rem;
    color: #c53030;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faults-number-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dial-text {
    font-size: 1.2rem;
    color: #742a2a;
    font-weight: 500;
}

.faults-number-display .number {
    font-size: 3rem;
    font-weight: 800;
    color: #c53030;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.faults-number-display .number:hover {
    transform: scale(1.05);
}

.carrier-note {
    font-size: 0.9rem;
    color: #742a2a;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
    }
}

@media (max-width: 768px) {
    .faults-alert-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

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

    .faults-number-display {
        justify-content: center;
    }

    .carrier-note {
        justify-content: center;
    }
}

/* Contact Information Section */
.contact-info-section {
    padding: 6rem 0;
    background: var(--white-color);
}

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

.contact-card {
    background: var(--white-color);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 78, 137, 0.2);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 78, 137, 0.3);
}

.contact-icon i {
    font-size: 2.2rem;
    color: var(--white-color);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: var(--light-gray-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form .form-group:focus-within label {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

/* Regional Offices Section */
.regional-offices {
    padding: 6rem 0;
    background: var(--white-color);
}

.regional-offices h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

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

.office-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid #e0e0e0;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.office-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.office-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.office-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.office-badge.main {
    background: var(--accent-color);
    color: var(--white-color);
}

.office-badge.regional {
    background: var(--primary-color);
    color: var(--white-color);
}

.office-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.office-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.office-info i {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--white-color) 0%, #f8f9fa 50%, var(--white-color) 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.faq-header .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.faq-contact-note {
    font-size: 1rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
}

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

.faq-category {
    margin-bottom: 3rem;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 78, 137, 0.1);
    border: 2px solid rgba(0, 78, 137, 0.1);
}

.faq-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 78, 137, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-category-title i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 2px solid rgba(0, 78, 137, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 78, 137, 0.02);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.1);
}

.faq-item.active {
    border-color: var(--primary-color);
    background: var(--white-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.4s ease;
    padding: 0 1.5rem;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 10000px;
    padding: 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #555;
    line-height: 1.8;
}

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

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-header .section-subtitle {
        font-size: 1rem;
    }

    .faq-category {
        padding: 1.5rem;
    }

    .faq-category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

/* Map Section */
.map-section {
    padding: 6rem 0;
    background: var(--light-gray-color);
}

.map-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-family: var(--font-heading);
}

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

.map-placeholder {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-placeholder h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.map-placeholder p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design for Contact Page */
@media screen and (max-width: 768px) {
    .contact-hero .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    .office-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}