/* Modern Application Form Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Header Styling */
.site-navbar {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 2rem;
}

.site-navbar h1 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
    font-size: 2.5rem;
}

/* Main Card */
.main-application-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
    background: white;
    animation: fadeInUp 0.6s ease-out;
}

.main-application-card .card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    border: none;
}

.main-application-card .card-header h4 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.main-application-card .card-body {
    padding: 2rem;
}

/* Section Headers */
.section-header {
    color: #667eea;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    border-image: var(--primary-gradient) 1;
    display: flex;
    align-items: center;
}

.section-header::before {
    content: '';
    width: 5px;
    height: 30px;
    background: var(--primary-gradient);
    margin-right: 15px;
    border-radius: 3px;
}

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

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e0;
}

/* Text areas */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Radio and Checkbox Containers */
.radio-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.radio-card:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.form-check {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -2rem;
    margin-right: 0.75rem;
    border: 2px solid #cbd5e0;
    cursor: pointer;
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-check-label {
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.info-card .card-body {
    padding: 1.5rem;
}

.info-card p {
    margin: 0;
    color: #4c51bf;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Warning Text */
.warning-text {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Activities Table */
.activities-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activities-table thead {
    background: var(--primary-gradient);
    color: white;
}

.activities-table thead th {
    padding: 1.25rem;
    font-weight: 600;
    border: none;
}

.activities-table tbody tr {
    transition: var(--transition-smooth);
    border-bottom: 1px solid #e2e8f0;
}

.activities-table tbody tr:hover {
    background: #f7fafc;
    transform: scale(1.01);
}

.activities-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.activities-table input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: #667eea;
}

/* Consent Card */
.consent-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.consent-card .form-check-label {
    font-size: 1.1rem;
    color: #92400e;
}

/* Signature Section */
.signature-section {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.signature-section:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.signature-instruction {
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.signature-instruction p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.drawing-board {
    padding: 1rem;
}

#drawing-board {
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    height: 200px;
    cursor: crosshair;
    background: white;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

#drawing-board:hover {
    border-color: #667eea;
}

#clear-button {
    margin-top: 1rem;
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Submit Button */
.btn-submit {
    background: var(--success-gradient);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Footer */
footer {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px rgba(102, 126, 234, 0.2);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Parent Info Sections */
.parent-info-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
    margin-bottom: 1.5rem;
}

.parent-info-section h3 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Required Field Asterisk */
small.text-danger {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-navbar h1 {
        font-size: 1.75rem;
    }
    
    .main-application-card .card-body {
        padding: 1.5rem;
    }
    
    .section-header {
        font-size: 1.25rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .parent-info-section {
        padding: 1.5rem;
    }
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Form Validation Styling */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #10b981;
}
