:root {
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
}

/* Choice Cards (for step 5) */
.choice-cards {
    container-type: inline-size;
    container-name: choice-cards;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.choice-card {
    display: block;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    flex: 0 1 370px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    width: 100%;
}

.choice-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    text-decoration: none;
}

.choice-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
}

.choice-card .icon {
    font-size: 60px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.choice-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.choice-card .description {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.choice-card .features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.choice-card .features li {
    color: var(--text-dark);
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.choice-card .features li:last-child {
    border-bottom: none;
}

.choice-card .features li i {
    color: var(--success-color);
    margin-right: 8px;
}

.choice-card .btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.choice-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    text-decoration: none;
}

/* Paper Form Instructions */
.paper-instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--warning-color);
    display: none;
}

.paper-instructions.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.instruction-step .step-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.instruction-step .step-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.instruction-step .step-content p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.instruction-step .step-content ul {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* Mailing Info Box */
.mailing-info {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.mailing-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.mailing-info .address {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

/* Wizard Progress Bar */
.progress-bar-container {
    position: relative;
    margin-bottom: 40px;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    background-color: var(--accent-color);
    z-index: 2;
    transition: width 0.5s ease;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.wizard-step {
    text-align: center;
    flex: 1;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 45px;
    background-color: #e9ecef;
    color: var(--secondary-color);
    border-radius: 50%;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-step.active .step-number {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.wizard-step.current .step-number {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.2);
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.wizard-step.completed .step-number {
    background-color: var(--success-color);
    color: white;
    font-size: 0;
    position: relative;
}

.wizard-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.wizard-step.active .step-title {
    color: var(--primary-color);
}

.wizard-step.current .step-title {
    color: var(--primary-color);
    font-weight: 700;
}

.wizard-step.completed .step-title {
    color: var(--success-color);
}

.wizard-step.completed {
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-step.completed:hover {
    transform: translateY(-2px);
}

.wizard-step.active {
    cursor: pointer;
}

.wizard-step.current {
    cursor: pointer;
}

.wizard-step:not(.completed):not(.active):not(.current) {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Content Cards */
.wizard-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 500px;
}

.step-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.step-header h2 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-header p {
    color: var(--secondary-color);
    font-size: 18px;
    margin: 0;
}

/* Educational Content Boxes */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box ul {
    margin-bottom: 0;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.success-box {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Property Summary Card */
.property-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.property-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.property-summary .row {
    font-size: 16px;
}

.property-summary .label {
    font-weight: 600;
    opacity: 0.9;
}

.property-summary .value {
    font-weight: bold;
}

/* Interactive Elements */
.check-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid var(--accent-color);
}

.check-item-icon {
    width: 45px;
    height: 45px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.check-item-content {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin: 20px 0;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 18px;
}

.comparison-table td {
    padding: 15px;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Navigation Buttons */
.wizard-nav {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 100;
}

.btn-wizard {
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-appeal-start {
    background-color: var(--success-color);
    color: white;
    font-size: 20px;
    padding: 15px 40px;
    border: none;
}

.btn-appeal-start:hover {
    background-color: #229954;
    color: white;
}

/* Help Section */
.help-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.help-sidebar h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.help-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.help-item:last-child {
    border-bottom: none;
}

.help-item i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* PDF Download Button */
.pdf-download-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-download-pdf {
    background-color: var(--danger-color);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-pdf:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Mobile Progress Steps */
.mobile-steps-toggle {
    display: none;
    background: var(--accent-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    justify-content: space-between;
    align-items: center;
}

.mobile-steps-toggle:hover {
    background-color: #2980b9;
}

.mobile-steps-toggle i {
    transition: transform 0.3s ease;
}

.mobile-steps-content {
    display: block;
}

.mobile-nav-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.mobile-nav-buttons .row {
    max-width: 100%;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .wizard-steps {
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

    .wizard-steps::-webkit-scrollbar {
        height: 6px;
    }

    .wizard-steps::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .wizard-steps::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 3px;
    }

    .wizard-step {
        min-width: 140px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .mobile-steps-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-steps-content {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .mobile-steps-content.show {
        display: block;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 10px;
        overflow-x: visible;
        padding: 0;
    }

    .wizard-step {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        min-width: auto;
        margin-bottom: 0;
    }

    .wizard-step.active {
        background: rgba(52, 152, 219, 0.1);
    }

    .wizard-step.current {
        background: rgba(52, 152, 219, 0.15);
        border: 2px solid var(--accent-color);
    }

    .wizard-step.completed {
        background: rgba(39, 174, 96, 0.1);
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wizard-step.completed .step-number::after {
        font-size: 16px;
    }

    .step-title {
        font-size: 16px;
        margin: 0;
    }

    .progress-line, .progress-line-active {
        display: none;
    }

    .wizard-nav {
        display: none;
    }

    .mobile-nav-buttons {
        display: block;
    }

/*    .choice-cards {
        flex-direction: column;
        align-items: center;
    }*/

    .choice-card {
        max-width: 400px;
        margin-bottom: 20px;
    }

    .wizard-content {
        padding: 20px;
        margin-bottom: 15px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .help-sidebar {
        position: relative;
        top: auto;
        margin-top: 30px;
    }

    .instruction-step {
        flex-direction: column;
        text-align: center;
    }

    .instruction-step .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .property-summary {
        padding: 20px;
    }

    .wizard-content {
        padding: 15px;
    }

    .step-header h2 {
        font-size: 20px;
    }

    .step-header p {
        font-size: 16px;
    }

    .mobile-nav-buttons {
        padding: 10px 15px;
    }

    .mobile-nav-buttons .btn-wizard {
        padding: 10px 15px;
        font-size: 14px;
    }

    .choice-card {
        padding: 20px;
    }

    .choice-card h3 {
        font-size: 20px;
    }

    .choice-card .features li {
        font-size: 14px;
    }

    .check-item-icon {
        width: 35px;
        height: 35px;
        margin-right: 15px;
        font-size: 16px;
    }
}

/* Horizontal Choice Card - Desktop Layout */
@media (min-width: 769px) {
    .choice-card.choice-card-horizontal {
        display: flex;
        flex: 2 1 370px;
        align-items: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    animation: fadeIn 0.5s ease;
}

@container choice-cards (min-width: 700px) {
    .choice-card {
        flex: 0 1 370px;
    }

    .choice-card.choice-card-horizontal {
        display: flex;
        flex: 1 1 100%;
        align-items: center;
        text-align: left;
    }

    .choice-card.choice-card-horizontal .icon {
        margin-bottom: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }
}

@container choice-cards (max-width: 699px) {
    .choice-card {
        flex: 1 1 100%;
        max-width: 400px;
    }

    .choice-card.choice-card-horizontal {
        display: block;
        text-align: center;
    }

    .choice-card.choice-card-horizontal .icon {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .choice-card.choice-card-horizontal .flex-grow-1 {
        margin-bottom: 20px;
    }

    .choice-card.choice-card-horizontal .ms-4 {
        margin-left: 0 !important;
    }
}
