body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navbar Styling */
nav {
    background-color: #cf0f47;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(207, 15, 71, 0.3);
}

.navbar-brand {
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Page Banner */
.bb-banner {
    background: linear-gradient(135deg, #cf0f47 0%, #b50e40 50%, #a00d39 100%);
    color: #fff;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.bb-banner::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.bb-banner h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bb-banner .lead {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Emergency Contact Card */
.emergency-card {
    max-width: 1100px;
    margin: 3rem auto 4rem;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ed 100%);
    border: 2px solid #cf0f47;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(207, 15, 71, 0.2);
    position: relative;
    overflow: hidden;
}

.emergency-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.emergency-icon {
    font-size: 3rem;
    color: #cf0f47;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-title {
    color: #cf0f47;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.emergency-text {
    color: #8b0000;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.contact-info p {
    color: #5d4e37;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-info i {
    color: #cf0f47;
    width: 16px;
}

.btn-emergency {
    background: transparent;
    color: #cf0f47;
    border: 2px solid #cf0f47;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(207, 15, 71, 0.1);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 5px 15px rgba(207, 15, 71, 0.1); }
    50% { box-shadow: 0 8px 25px rgba(207, 15, 71, 0.2); }
}

.btn-emergency:hover {
    background: #cf0f47;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(207, 15, 71, 0.3);
}

/* Form Card */
.bb-card {
    max-width: 1100px;
    margin: 0 auto 4rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(207, 15, 71, 0.1);
}

/* Section Headers */
.section-header {
    color: #cf0f47;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #cf0f47;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #cf0f47, #ff6b9d);
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #cf0f47;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-control:focus, .form-select:focus {
    border-color: #cf0f47;
    box-shadow: 0 0 0 0.2rem rgba(207, 15, 71, 0.15);
    background-color: #fff;
}

.form-control:invalid, .form-select:invalid {
    border-color: #cf0f47;
    background-color: #fff5f7;
}

.invalid-feedback {
    color: #cf0f47;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Radio Buttons and Checkboxes */
.form-check-input {
    border: 2px solid #cf0f47;
    margin-top: 0.2rem;
}

.form-check-input:checked {
    background-color: #cf0f47;
    border-color: #cf0f47;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(207, 15, 71, 0.15);
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

/* Component Checkboxes */
.component-checkbox {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.component-checkbox:hover {
    background: #fff;
    border-color: #cf0f47;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(207, 15, 71, 0.1);
}

.component-checkbox .form-check-input:checked ~ .form-check-label {
    color: #cf0f47;
    font-weight: 600;
}

/* Female Section */
#femaleSection {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ed 100%);
    border: 2px solid rgba(207, 15, 71, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Submit Button */
.btn-bb {
    background: linear-gradient(135deg, #cf0f47 0%, #b50e40 100%);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(207, 15, 71, 0.3);
}

.btn-bb:hover {
    background: linear-gradient(135deg, #b50e40 0%, #a00d39 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(207, 15, 71, 0.4);
}

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

/* Icons for sections */
.section-icon {
    display: inline-block;
    margin-right: 0.5rem;
    color: #cf0f47;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation Center Alignment */
    .navbar-nav {
    text-align: center;
    }
    
    .nav-item {
    margin: 0.2rem 0;
    }
    
    .nav-link {
    padding: 0.8rem 1rem !important;
    margin: 0;
    border-radius: 8px;
    }
    
    .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    }

    .emergency-card {
    margin: 2rem 1rem 3rem;
    padding: 1.5rem;
    }

    .emergency-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    }

    .emergency-title {
    font-size: 1.1rem;
    }

    .emergency-text {
    font-size: 0.9rem;
    }

    .contact-info {
    margin-top: 1rem;
    padding: 0.8rem;
    }

    .contact-info p {
    font-size: 0.85rem;
    }

    .btn-emergency {
    width: 100%;
    margin-top: 1rem;
    }

    .bb-banner {
    padding: 6rem 1rem 3rem;
    }

    .bb-banner h2 {
    font-size: 2rem;
    }

    .bb-card {
    margin: 0 1rem 2rem;
    padding: 2rem 1.5rem;
    }

    .section-header {
    font-size: 1.2rem;
    }

    .component-checkbox {
    margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .bb-banner h2 {
    font-size: 1.5rem;
    }

    .bb-card {
    padding: 1.5rem 1rem;
    }

    .btn-bb {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    }
}

/* Animation for form appearance */
.bb-card {
    animation: slideUp 0.8s ease-out;
}

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

/* Loading state for submit button */
.btn-bb.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-bb.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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