/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="rgba(255,255,255,0.03)"/><path d="M0 0L60 60M60 0L0 60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.page-header-content p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.6;
}

/* ===================================
   CONTACT CARDS SECTION
   =================================== */
.contact-cards-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.contact-card-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

/* ===================================
   MAIN CONTACT SECTION
   =================================== */
.main-contact-section {
    padding: 5rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

/* ===================================
   CONTACT FORM
   =================================== */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #ef4444;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   SIDEBAR
   =================================== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.certification-list {
    list-style: none;
}

.certification-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.certification-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.certification-list strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.certification-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.emergency-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.emergency-card .sidebar-icon {
    color: white;
}

.emergency-card h3 {
    color: white;
}

.emergency-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.emergency-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.emergency-number:hover {
    transform: scale(1.05);
}

/* ===================================
   MAP SECTION
   =================================== */
.map-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.map-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-section h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.map-section p {
    color: var(--text-light);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-placeholder {
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.map-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.map-placeholder p {
    text-align: center;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-section {
    padding: 5rem 0;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.faq-section h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.faq-section .section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* ===================================
   SUCCESS MESSAGE
   =================================== */
.success-message {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message svg {
    width: 60px;
    height: 60px;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #047857;
    font-size: 1rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 2.5rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-container {
        padding: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.2rem;
    }

    .map-placeholder {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .page-header-content p {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .faq-section h2 {
        font-size: 2rem;
    }
}