/* Global Variables & Fonts */
:root {
    --primary-navy: #0f172a;
    --navy-surface: #1e293b;
    --brand-blue: #0284c7;
    --brand-blue-hover: #0369a1;
    --brand-amber: #f59e0b;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Navigation */
.bg-navy {
    background-color: var(--primary-navy) !important;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
}

.bg-amber {
    background-color: #fbbf24 !important;
}

/* Forms & Kobo-like Cards */
.form-kobo-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .form-kobo-card {
        padding: 1rem 0.75rem;
    }
}

.form-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.section-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.question-group {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.question-group:hover, .question-group:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px #38bdf8;
}

.question-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.question-help {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.required-star {
    color: #ef4444;
    font-weight: bold;
}

/* Option List Styling (Radio / Checkboxes) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-tile {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #fafbfc;
}

.option-tile:hover {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

.option-tile input[type="radio"],
.option-tile input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 1.15rem;
    height: 1.15rem;
}

.option-tile label {
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #334155;
}

/* Multimedia Drop Zone */
.media-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    background-color: #f8fafc;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.media-dropzone:hover, .media-dropzone.dragover {
    border-color: #0284c7;
    background-color: #f0f9ff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
    border: 1px solid #cbd5e1;
    background: #000;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Calculated Age Badge */
.age-badge {
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.age-badge.has-age {
    background: #dcfce7;
    color: #166534;
}

/* Buttons */
.btn-submit {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: white;
}

.btn-draft {
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
}

.btn-draft:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Home Track Cards */
.track-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
}

/* Print Styles */
@media print {
    nav, footer, .btn-submit, .btn-draft, .no-print {
        display: none !important;
    }
    .form-kobo-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
