/**
 * Patient Registration Form Styles
 * Prompt Urgent Care
 * 
 * Professional medical form styling with clean, modern design
 */

/* =========================================
   CSS Variables - Design Tokens
   ========================================= */
:root {
    /* Colors */
    --color-bg: #f6f7fb;
    --color-card: #fff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-primary: #2563eb;
    --color-primary-light: #93c5fd;
    --color-danger: #b91c1c;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-danger-light: #fef2f2;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;

    /* Typography */
    --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 26px;

    /* Shadows */
    --shadow-card: 0 10px 25px rgba(17, 24, 39, 0.06);
    --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.12);
    --shadow-error: 0 0 0 3px rgba(185, 28, 28, 0.10);
}

/* =========================================
   Base Styles
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

/* =========================================
   Layout
   ========================================= */
.wrap {
    max-width: 1000px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* =========================================
   Header
   ========================================= */
header {
    padding: var(--spacing-xl) var(--spacing-xl) 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: var(--font-size-xl);
    letter-spacing: 0.2px;
    color: var(--color-primary);
}

header h2 {
    margin: 6px 0 var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #374151;
}

header p {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-muted);
    font-size: var(--font-size-base);
    text-align: left;
}

/* =========================================
   Form
   ========================================= */
form {
    padding: var(--spacing-xl);
}

fieldset {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: 0 0 var(--spacing-lg);
}

legend {
    padding: 0 var(--spacing-sm);
    font-weight: 700;
    color: var(--color-text);
}

/* =========================================
   Grid System
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}

.col-12 {
    grid-column: span 12;
}

.col-10 {
    grid-column: span 10;
}

.col-9 {
    grid-column: span 9;
}

.col-8 {
    grid-column: span 8;
}

.col-7 {
    grid-column: span 7;
}

.col-6 {
    grid-column: span 6;
}

.col-5 {
    grid-column: span 5;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.col-2 {
    grid-column: span 2;
}

.col-1 {
    grid-column: span 1;
}

/* =========================================
   Responsive - Tablet (820px)
   ========================================= */
@media (max-width: 820px) {
    .wrap {
        margin: var(--spacing-lg) auto;
        padding: 0 var(--spacing-md);
    }

    header {
        padding: var(--spacing-lg) var(--spacing-lg) 0;
    }

    header h1 {
        font-size: 22px;
    }

    header h2 {
        font-size: 16px;
    }

    form {
        padding: var(--spacing-lg);
    }

    fieldset {
        padding: var(--spacing-md);
    }

    .col-10,
    .col-9,
    .col-8,
    .col-7,
    .col-6,
    .col-5,
    .col-4,
    .col-3,
    .col-2,
    .col-1 {
        grid-column: span 12;
    }

    .row-inline {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .pill {
        width: 100%;
        justify-content: flex-start;
    }

    .actions {
        flex-direction: column-reverse;
    }

    .actions .btn {
        width: 100%;
        text-align: center;
    }

    .table th,
    .table td {
        padding: 8px;
        font-size: 13px;
    }
}

/* =========================================
   Responsive - Mobile (480px)
   ========================================= */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 12px;
        --spacing-xl: 16px;
        --spacing-2xl: 20px;
    }

    .wrap {
        margin: var(--spacing-md) auto;
        padding: 0 var(--spacing-sm);
    }

    .card {
        border-radius: var(--radius-md);
    }

    header h1 {
        font-size: 20px;
    }

    header h2 {
        font-size: 15px;
    }

    form {
        padding: var(--spacing-md);
    }

    fieldset {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    legend {
        font-size: 14px;
    }

    input,
    select,
    textarea {
        padding: 12px var(--spacing-sm);
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .grid {
        gap: var(--spacing-sm);
    }

    .btn {
        padding: 14px var(--spacing-md);
        font-size: 15px;
    }

    .badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 6px;
    }

    /* Stack table cells on very small screens */
    .table-responsive {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================
   Form Elements
   ========================================= */
label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    margin: 0 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px var(--spacing-md);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-focus);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

/* =========================================
   Pills & Checkboxes
   ========================================= */
.row-inline {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px var(--spacing-md);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.pill:hover {
    border-color: var(--color-primary-light);
    background: #f8fafc;
}

.pill input {
    width: auto;
    padding: 0;
    margin: 0;
}

.plain-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
}

.plain-check input {
    width: auto;
    margin: 0;
}

/* =========================================
   Tables
   ========================================= */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
}

.table th,
.table td {
    border-bottom: 1px solid var(--color-line);
    padding: 10px;
    text-align: left;
    font-size: var(--font-size-base);
}

.table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.table tr:last-child td {
    border-bottom: none;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    appearance: none;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 700;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: transform 0.1s, box-shadow 0.2s;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #111827;
    color: #fff;
}

.btn-secondary:hover {
    background: #1f2937;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--color-line);
    color: #111827;
}

.btn-add {
    background: var(--color-success);
    color: #fff;
}

.btn-add:hover {
    background: #15803d;
}

.btn-remove {
    background: #dc2626;
    color: #fff;
}

.btn-remove:hover {
    background: #b91c1c;
}

.actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-sm);
}

/* =========================================
   Dynamic Lists (Medications/Surgeries)
   ========================================= */
.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-lg);
    background: #f3f4f6;
    border: 1px solid var(--color-line);
    color: #111827;
    font-weight: 700;
    flex: 0 0 auto;
}

/* =========================================
   Helpers
   ========================================= */
.hint {
    font-size: var(--font-size-xs);
    color: var(--color-muted);
    margin-top: 6px;
}

.required {
    color: var(--color-danger);
    font-weight: 700;
    margin-left: var(--spacing-xs);
}

.hidden {
    display: none !important;
}

/* =========================================
   Validation & Errors
   ========================================= */
.error {
    margin-top: var(--spacing-sm);
    padding: 10px var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--color-danger-light);
    border: 1px solid #fecaca;
    color: #7f1d1d;
    display: none;
}

.invalid {
    border-color: #fca5a5 !important;
    box-shadow: var(--shadow-error) !important;
}

/* =========================================
   Dynamic List Styling (Professional)
   ========================================= */
.dynamic-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.dynamic-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dynamic-col-badge {
    flex: 0 0 32px;
    /* Fixed width for badge */
    display: flex;
    justify-content: center;
}

.dynamic-col-input {
    flex: 1;
    /* Takes remaining space */
}

.dynamic-col-date {
    flex: 0 0 180px;
    /* Fixed width for date */
}

.dynamic-col-action {
    flex: 0 0 auto;
}

/* Adjust button size in rows */
.dynamic-col-action .btn {
    padding: 10px 16px;
    font-size: 13px;
    height: 44px;
    /* Match input height closely */
    display: flex;
    align-items: center;
}

/* Input fixes inside dynamic rows */
.dynamic-col-input input,
.dynamic-col-date input {
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .dynamic-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .dynamic-col-badge {
        display: none;
        /* Hide badge on mobile to save space, or keep if preferred */
    }

    .dynamic-col-input {
        flex: 1 1 100%;
    }

    .dynamic-col-date {
        flex: 1 1 100%;
    }

    .dynamic-col-action {
        flex: 1 1 100%;
    }

    .dynamic-col-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Laravel Validation Errors */
.alert-danger {
    background: var(--color-danger-light);
    border: 1px solid #fecaca;
    color: #7f1d1d;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert-danger ul {
    margin: var(--spacing-sm) 0 0;
    padding-left: var(--spacing-xl);
}

.alert-danger li {
    margin: var(--spacing-xs) 0;
}

/* Success Message */
.alert-success {
    background: var(--color-success-light);
    border: 1px solid #86efac;
    color: #166534;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

/* =========================================
   Sub-Section distinct styling
   ========================================= */
.sub-section-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sub-section-title {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
    color: #111827;
}

/* =========================================
   Visibility Helpers
   ========================================= */
.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* =========================================
   Advanced Mobile Layout (Accordion)
   ========================================= */
@media (max-width: 991px) {
    .wrap {
        margin: 15px auto;
        padding: 0 12px;
    }

    form {
        padding: 0;
        background: transparent;
    }

    .card {
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .card>header {
        background: #fff;
        border-radius: var(--radius-lg);
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
        /* Subtle shadow */
        padding: 24px 20px;
        margin-bottom: 24px;
        border: 1px solid var(--color-line);
        text-align: center;
    }

    .alert-danger {
        margin: 0 0 20px;
    }

    /* Accordion Fieldsets */
    fieldset {
        background: #fff;
        border: 1px solid var(--color-line);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        /* Very clean, minimal shadow */
        border-radius: var(--radius-md);
        padding: 0;
        margin-bottom: 12px;
        overflow: hidden;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }

    fieldset.expanded {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        border-color: #93c5fd;
        /* Soft blue highlight */
    }

    /* Locked Accordion State - Looks normal but won't open (toast shows on click) */
    fieldset.locked legend {
        cursor: pointer;
    }

    fieldset legend {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
        background: #fff;
        cursor: pointer;
        border-bottom: 1px solid transparent;
        transition: background 0.2s, color 0.2s;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    fieldset legend::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #9ca3af;
        border-bottom: 2px solid #9ca3af;
        transform: rotate(45deg);
        transition: transform 0.3s, border-color 0.3s;
        transform-origin: center;
        margin-left: 10px;
    }

    /* Expanded State */
    fieldset.expanded legend {
        background: #eff6ff;
        color: #1d4ed8;
        border-bottom-color: #dbeafe;
    }

    fieldset.expanded legend::after {
        transform: rotate(-135deg);
        border-color: #2563eb;
    }

    /* Content Area */
    fieldset>.grid {
        display: none;
        padding: 24px 20px;
        gap: 20px;
        background: #fff;
    }

    fieldset.expanded>.grid {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Ensure columns stack */
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-12 {
        grid-column: span 12;
        width: 100%;
    }

    /* Professional Mobile Inputs */
    input,
    select,
    textarea {
        font-size: 16px;
        /* No zoom */
        padding: 14px 16px;
        border-color: #e5e7eb;
        background-color: #f9fafb;
        transition: all 0.2s;
    }

    input:focus,
    select:focus,
    textarea:focus {
        background-color: #fff;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    /* Adjust specific elements */
    .row-inline {
        flex-direction: column;
        gap: 10px;
    }

    .pill {
        width: 100%;
        padding: 14px 16px;
        background-color: #fff;
        border: 1px solid #e5e7eb;
    }

    .pill:hover {
        background-color: #f3f4f6;
    }

    .pill input {
        margin-right: 8px;
    }

    .actions {
        flex-direction: column-reverse;
        padding: 20px 0 10px;
        gap: 12px;
    }

    .actions .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    /* Responsive Tables/Lists */
    .stack .grid {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 16px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius-md);
        margin-bottom: 12px;
    }

    /* Family History - Clean Card Look */
    .table {
        border: none;
        background: transparent;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .table tr {
        display: block;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        /* User requested lighter shadow */
    }

    .table td {
        display: block;
        padding: 0;
        border: none;
        margin-bottom: 12px;
    }

    .table td:last-child {
        margin-bottom: 0;
    }

    /* The Relation Name (Father/Mother) as Card Title */
    .table td:first-child {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Remove pseudo-labels */
    .table td::before {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Family History - Mobile Card Layout
   ========================================= */
.family-history-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-top: 24px;
    margin-bottom: 14px;
}

.family-history-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.family-member-block {
    padding: 4px 0;
}

.family-member-name {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.family-member-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.family-member-fields .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.family-member-fields .field-group label {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.family-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

/* =========================================
   Sub-Section Card Mobile Fixes
   ========================================= */
@media (max-width: 991px) {

    /* Section card with top spacing and border separator */
    .sub-section-card {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 20px 0 16px 0;
        margin-bottom: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
    }

    /* First sub-section needs no top border */
    .sub-section-card:first-of-type {
        border-top: none;
        padding-top: 0;
    }

    .sub-section-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 14px;
        display: block;
    }

    /* Dynamic Row - Stacked layout for more space */
    .dynamic-row {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        padding-bottom: 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dynamic-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Medication row: Input + button inline */
    .dynamic-row.med-row {
        flex-direction: row;
        align-items: center;
    }

    .dynamic-row.med-row .dynamic-col-input {
        flex: 1;
    }

    .dynamic-row.med-row .dynamic-col-action {
        flex: 0 0 auto;
    }

    /* Surgery row: All fields stacked vertically */
    .dynamic-row.surg-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dynamic-row.surg-row .dynamic-col-input,
    .dynamic-row.surg-row .dynamic-col-date {
        width: 100%;
    }

    .dynamic-row.surg-row .dynamic-col-action {
        align-self: flex-end;
        margin-top: 4px;
    }

    /* Clean input with underline style */
    .dynamic-row input {
        border: none;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        padding: 12px 4px;
        font-size: 15px;
        background: transparent;
        width: 100%;
    }

    .dynamic-row input:focus {
        border-bottom-color: #2563eb;
        outline: none;
    }

    .dynamic-row input::placeholder {
        color: #9ca3af;
    }

    /* Compact remove button */
    .dynamic-row .btn-remove {
        background: #fee2e2;
        color: #dc2626;
        border: none;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Hide badge on mobile */
    .dynamic-col-badge {
        display: none;
    }

    /* Add button - full width below */
    .btn-add {
        border-radius: 10px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        margin-top: 8px;
    }

    /* Hint text styling */
    .hint {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 8px;
    }

    /* Social History - Bold question labels */
    .col-12>label {
        font-weight: 600;
        color: #1f2937;
        font-size: 14px;
    }

    /* Radio pill styling for Yes/No */
    .row-inline .pill {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px 20px;
        margin-bottom: 8px;
        font-weight: 500;
    }

    /* =========================================
       Global Mobile Spacing Fixes
       ========================================= */

    /* Space between form columns */
    .col-12,
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        margin-bottom: 16px;
    }

    /* Labels need proper spacing */
    label {
        margin-bottom: 6px;
        display: block;
    }

    /* Input fields proper spacing */
    input,
    select,
    textarea {
        margin-bottom: 0;
    }

    /* Section titles (like "Family History", "Social History") */
    .family-history-title,
    fieldset .col-12:first-child>label:first-child {
        margin-top: 20px;
    }

    /* First element in accordion doesn't need top margin */
    fieldset .grid>.col-12:first-child,
    fieldset .grid>.col-md-6:first-child {
        margin-top: 0;
    }

    /* Proper gap between checkbox/radio groups */
    .checkbox-group,
    .radio-group {
        margin-bottom: 10px;
    }

    /* Pills container spacing */
    .row-inline {
        margin-bottom: 16px;
    }

    /* Sub-section titles spacing */
    .sub-section-title {
        margin-top: 8px;
    }

    /* Family History card proper spacing */
    .family-history-card {
        margin-top: 8px;
    }
}