:root {
    /* Modern Professional Color Palette */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --accent-green: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: url(/static/images/heartbeat.jpg);
    padding: 5px 0;
    margin-bottom: -50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Form Container */
.form-container {
    max-width: 900px;
    position: relative;
    z-index: 10;
    margin-top: 60px;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.card-header {
    padding: 2rem 1.5rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e0f2fe;
}

.card-header h3 {
    color: #1e293b;
    font-weight: 700;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-header p {
    color: #64748b;
}

/* Section Headers */
.section-header {
    color: rgb(0, 0, 0);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.section-header i {
    font-size: 1.3rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-label i {
    font-size: 1rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: #f8fafc;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Icon Colors */
.text-primary { color: var(--primary-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }

/* Submit Button */
.btn-submit {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 15px 60px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    filter: brightness(1.05);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit i {
    margin-right: 10px;
}

/* Card Body */
.card-body {
    padding: 2rem 2.5rem;
}

/* Footer */
.footer {
    background: white;
    padding: 30px 0;
    border-top: 3px solid var(--primary-color);
    margin-top: 60px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer p {
    color: #64748b;
    font-size: 0.95rem;
}

.footer i {
    color: var(--primary-color);
    margin: 0 5px;
}

/* Form Row Spacing */
.row.g-3 {
    row-gap: 1rem !important;
}

/* Select Dropdown Arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1.5rem 1.25rem 1rem;
    }
    
    .btn-submit {
        padding: 12px 40px;
        font-size: 1rem;
    }
    
    .section-header {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

/* Smooth Transitions */
.form-control, .form-select, .btn-submit {
    transition: all 0.3s ease;
}