/* ===========================
   Contact Page Styles
   =========================== */

/* Global Overflow Fix for Contact Page */
* {
    box-sizing: border-box;
}

section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Add CSS Variables for Contact Page */
:root {
    --color-primary: #1e3a8a;
    --color-secondary: #f59e0b;
    --color-text: #374151;
    --color-accent: #dc2626;
    --font-primary: 'Playfair Display', serif;
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --success-color: #10b981;
}

/* Force Single Line Navigation for All Desktop Sizes */
@media (min-width: 769px) {
    .navbar {
        min-width: 100%;
        overflow-x: auto;
    }
    
    .nav-container {
        min-width: max-content;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow: visible;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Desktop Navigation CTA Styles */
@media (min-width: 769px) {
    .nav-container {
        max-width: 1400px;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 2rem;
        align-items: center;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nav-menu .nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .nav-menu .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(30, 58, 138, 0.1);
    }
    
    .nav-menu .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
    
    .nav-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-left: 2rem;
        flex-shrink: 0;
    }
    
    .nav-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    
    .nav-cta .btn-outline {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    .nav-cta .btn-outline:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }
    
    .nav-cta .btn-primary {
        background: var(--primary-color);
        color: white;
        border: 2px solid var(--primary-color);
    }
    
    .nav-cta .btn-primary:hover {
        background: #1e40af;
        border-color: #1e40af;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    }
    
    /* Improve nav container layout for large screens */
    .nav-container {
        max-width: 1400px;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 2rem;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(30, 58, 138, 0.1);
    }
    
    .nav-menu .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
}

/* Large Desktop Specific Improvements */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1600px;
        padding: 0 3rem;
        gap: 3rem;
    }
    
    .nav-menu {
        gap: 2.5rem;
        flex: 1;
        justify-content: center;
    }
    
    .nav-menu .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .nav-cta {
        gap: 1.5rem;
        margin-left: auto;
    }
    
    .nav-cta .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .nav-container {
        max-width: 1800px;
        padding: 0 4rem;
    }
    
    .nav-menu {
        gap: 3rem;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* Contact Form Checkbox Text Fix */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .checkbox-item {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
}

/* Ensure contact page sections have proper spacing */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background: #f9fafb;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Contact Methods Section Override */
.contact-methods {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
}

.contact-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a8a' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Contact Form Section Override */
.contact-form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 5rem 0;
}

/* Mobile Navigation Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ensure mobile menu works on contact page */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-logo {
        gap: 8px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-cta {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-logo {
        gap: 6px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .contact-form h3 {
        font-size: 1.6rem;
    }
}

/* ===========================
   Contact Page Header
   =========================== */
.contact-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(245, 158, 11, 0.1)),
                url('../images/contact-bg.jpg') center/cover;
    min-height: 50vh;
    position: relative;
}

.contact-header .header-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.contact-header p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   Contact Methods Section
   =========================== */
.contact-methods {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--color-primary);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0.2;
    z-index: -1;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-details .contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-details .contact-link:hover {
    color: var(--color-secondary);
}

.contact-details .timing {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.contact-actions {
    margin-top: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.contact-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.contact-btn.whatsapp {
    background: #25d366;
    border-color: #25d366;
}

.contact-btn.whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
}

/* ===========================
   Contact Form Section
   =========================== */
.contact-form-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 4rem 0;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.form-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.form-header p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.response-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-features .feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.05);
}

.response-features .feature i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.response-features .feature span {
    font-weight: 600;
    color: var(--color-primary);
}

/* ===========================
   Contact Form Styles
   =========================== */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-form .form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.1rem;
    z-index: 2;
}

.contact-form .form-group:has(textarea) .form-icon {
    top: 3rem;
    transform: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* ===========================
   Checkbox Group Styles
   =========================== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    overflow: visible;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-weight: 500;
    white-space: nowrap !important;
    overflow: visible;
    flex-wrap: nowrap !important;
    min-width: max-content;
    width: auto;
}

/* Force single line for training interest checkboxes specifically */
.contact-form .checkbox-group .checkbox-item {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: visible;
    min-width: max-content;
    width: auto;
}

/* Responsive behavior for small screens */
@media (max-width: 640px) {
    .checkbox-item {
        white-space: normal;
        overflow: visible;
        flex-wrap: wrap;
    }
    
    .contact-form .checkbox-group .checkbox-item {
        white-space: normal;
        flex-wrap: wrap;
    }
}

.checkbox-item:hover {
    border-color: var(--color-primary);
    background: white;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:checked ~ span {
    color: var(--color-primary);
}

/* ===========================
   Form Actions
   =========================== */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.btn-large span {
    position: relative;
    z-index: 2;
}

.btn-large::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: left 0.5s;
}

.btn-large:hover::before {
    left: 100%;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-text);
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-note i {
    color: var(--color-primary);
}

/* ===========================
   Location Section
   =========================== */
.location-section {
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.location-info h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.location-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-item div strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-item div p {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.location-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===========================
   Map Container
   =========================== */
.map-container {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-content {
    text-align: center;
    color: white;
}

.map-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.map-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--color-accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%);
    }
    40% {
        transform: translate(-50%, -60%);
    }
    60% {
        transform: translate(-50%, -55%);
    }
}

/* ===========================
   Contact FAQ Section
   =========================== */
.contact-faq {
    background: #f8fafc;
}

.contact-faq .faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.contact-faq .faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.05);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-faq .faq-item:hover {
    border-color: var(--color-primary);
}

.contact-faq .faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
}

.contact-faq .faq-question:hover {
    background: #f8fafc;
}

.contact-faq .faq-question.active {
    background: var(--color-primary);
    color: white;
}

.contact-faq .faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.contact-faq .faq-question i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.contact-faq .faq-question.active i {
    color: white;
    transform: rotate(180deg);
}

.contact-faq .faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.contact-faq .faq-answer.active {
    padding: 1.5rem 2rem;
    max-height: 200px;
}

.contact-faq .faq-answer p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

/* ===========================
   Emergency Contact Section
   =========================== */
.emergency-contact {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 3rem 0;
    color: white;
}

.emergency-content {
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.emergency-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.emergency-info p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.emergency-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.emergency-btn i {
    font-size: 1.5rem;
}

.emergency-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.emergency-btn strong {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.emergency-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.emergency-btn.btn-primary {
    background: white;
    color: var(--color-primary);
}

.emergency-btn.btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.emergency-btn.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.emergency-btn.btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ===========================
   Form Validation Styles
   =========================== */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--color-accent);
    background: #fef2f2;
}

.form-group.error .form-icon {
    color: var(--color-accent);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    background: #f0fdf4;
}

.form-group.success .form-icon {
    color: #10b981;
}

.error-message {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .emergency-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-header p {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .response-features {
        margin-top: 2rem;
    }
    
    .emergency-actions {
        width: 100%;
        justify-content: center;
    }
    
    .emergency-btn {
        flex: 1;
        min-width: unset;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .emergency-actions {
        flex-direction: column;
    }
    
    .emergency-btn {
        width: 100%;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .location-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
