:root {
    /*    --primary: #0f172a; !* Deep Navy *!
        --secondary: #1e293b;
        --accent: #d4af37; !* Metallic Gold *!
        --accent-hover: #b8860b;
        --success: #10b981;
        --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
        --card-bg: rgba(255, 255, 255, 0.05);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --border: rgba(255, 255, 255, 0.1);
        --glass: blur(12px);*/
    --tax-form-bg: #e2bcb9;
    --tax-form-white: #fff;
    --tax-form-black: #000;
    --tax-form-gray: #eeeeee;
    --tax-form-btn-bg: #772323;
}

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

!* Premium Layout *!
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}*/
.tax__support_container{
    max-width: 1000px;
}
/* Landing Cards */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.portal-card {
    background: var(--tax-form-bg);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/*.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent);
    z-index: 0;
}*/

.portal-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portal-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.portal-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
#step-5 .portal-card{
    cursor: default;
}

/* Form Styles */
.form-container {
    background: var(--tax-form-bg);
    backdrop-filter: var(
            --glass);
    border: 1px solid var(
            --border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideUp 0.6s ease-out;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tax-form-gray);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

input, select, textarea {
    background: rgb(255 255 255 / 53%);
    border: 1px solid var(--tax-form-btn-bg);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--tax-form-black);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Native date picker (calendar + year) */
input[type="date"].crs-input-date,
input[type="date"] {
    min-height: 2.85rem;
    box-sizing: border-box;
    color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
    padding: 0.15rem;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}
/*select:focus{
    background: #383a57;
}*/

/* Radio/Bubble Choice */
.bubble-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.bubble-option {
    display: flex;
    align-items: center;
    background: rgb(255 255 255 / 53%);
    border: 1px solid var(--tax-form-btn-bg);
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubble-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bubble-option input {
    margin-right: 1rem;
    accent-color: var(--accent);
    width: 20px;
    height: 20px;
}

.bubble-option.selected {
    border-color: var(--tax-form-btn-bg);
    background: rgb(255 255 255 / 53%);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--tax-form-btn-bg);
    color: var(--tax-form-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--tax-form-btn-bg);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--tax-form-gray);
    border-radius: 10px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--tax-form-btn-bg);
    width: 20%;
    transition: width 0.5s ease;
}

/* Admin Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--accent);
    font-weight: 600;
}

.status-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-online { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-office { background: rgba(212, 175, 55, 0.1); color: #d4af37; }

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="email"],
.form-container input[type="url"],
.form-container input[type="password"],
.form-container input[type="search"],
.form-container input[type=reset],
.form-container input[type=tel],
.form-container input[type=date],
.form-container select {
    height: auto;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .selection-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 2.2rem; }
    .form-container { padding: 1.5rem; }
}

@media print {
    body { background: white; color: black; }
    .btn, .progress-bar, header { display: none; }
    .form-container { display: block; background: transparent; border: none; box-shadow: none; padding: 0; }
    .section-title { border-bottom: 2px solid #000; color: #000; }
    .input-grid { grid-template-columns: 1fr 1fr; }
    .input-group label { color: #666; }
    input, select, textarea { border: none; border-bottom: 1px solid #ccc; color: #000; }
}
div#spouse-info {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#step-5 .portal-card{
    background: rgb(255 255 255 / 53%);
}


/* Submit processing overlay */
.crs-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.crs-submit-overlay[hidden] {
    display: none !important;
}

.crs-submit-overlay__panel {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    background: var(--tax-form-bg, #e2bcb9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    color: var(--tax-form-black, #000);
}

.crs-submit-overlay__title {
    margin: 1rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.crs-submit-overlay__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.crs-submit-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid rgba(119, 35, 35, 0.2);
    border-top-color: var(--tax-form-btn-bg, #772323);
    border-radius: 50%;
    animation: crs-spin 0.85s linear infinite;
}

@keyframes crs-spin {
    to {
        transform: rotate(360deg);
    }
}

.crs-submit-overlay.is-busy {
    pointer-events: all;
}

.tax__support_container.crs-form-busy {
    pointer-events: none;
    user-select: none;
    opacity: 0.96;
}

@media (max-width: 768px) {
    #step-2 .bubble-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .bubble-grid {
        gap: 0.5rem;
    }

    .bubble-option {
        padding: 0.5rem;
    }

    .form-container {
        padding: 10px;
        border-radius: 8px;
    }

    .bubble-option input {
        margin-right: 8px;
    }

    .input-group label {
    }

    .form-container .btn {
        padding: 1rem;
    }
}