/* 
    the TAXATION - Modern Premium Styling
    Design based on the provided references.
*/

:root {
    --primary: #1a1f36;
    /* Dark Blue */
    --accent: #ff7a21;
    /* Orange */
    --dark: #1a1f36;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

#tax-form-container {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    padding: 60px 20px;
    color: var(--text-main);
}

.tax-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tax-main-content {
    flex: 1;
}




.tax-stepper-wrap {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 50px;
}

/* Stepper */
.tax-stepper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
}

.tax-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.tax-step-item.active .step-icon {
    background: #ff7a21;
    border-color: #ff7a21;
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 122, 33, 0.15);
}

.tax-step-item.completed .step-icon {
    background: #22c55e;
    border-color: #22c55e;
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.tax-step-item.active .step-label {
    color: #ff7a21;
}

.step-line {
    flex: 0 0 140px;
    height: 2px;
    border-top: 2px dashed #e2e8f0;
    margin: 0 15px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

/* Pricing Cards Layout */
.tax-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
    align-items: stretch;
}

.tax-plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tax-plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tax-plan-card.recommended {
    border: 2px solid var(--accent);
}

.plan-header-badge {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tax-plan-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.plan-price {
    font-size: 44px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price::after {
    content: attr(data-cycle);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.plan-features li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Feature Dot Colors - strictly using Dark Blue and Orange */
.tax-plan-card:nth-child(1) .plan-features li::before {
    background: var(--primary);
}

.tax-plan-card:nth-child(2) .plan-features li::before {
    background: #ff7a21;
}

.tax-plan-card:nth-child(3) .plan-features li::before {
    background: var(--primary);
}

.plan-footer-note {
    font-size: 12px;
    font-style: italic;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

/* Billing Switcher (Pill Style) */
.tax-billing-period-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 30px;
}

.billing-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tax-billing-switcher {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    display: flex;
    position: relative;
    width: 280px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switch-btn {
    flex: 1;
    border: none;
    background: transparent !important;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
    outline: none !important;
    box-shadow: none !important;
}

.switch-btn:hover {
    background: transparent !important;
    color: var(--text-main);
}

.switch-btn.active {
    color: var(--white);
}

.switcher-knob {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: var(--accent);
    border-radius: 40px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 10px rgba(255, 122, 33, 0.3);
}

.switcher-knob.annual {
    transform: translateX(100%);
}

/* Ribbon for Middle Card */
.tax-plan-card:nth-child(2)::before {
    content: "⚡ MOST POPULAR";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ff7a21;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px 20px 0 0;
}

.tax-step-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tax-step-box.pricing-step {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Form Fields Styling */
.tax-step-header {
    margin-bottom: 40px;
    text-align: left;
}

.tax-step-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #1a1f36 !important;
}

.tax-step-header p {
    color: #64748b;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
}

.step-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.tax-fields-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    /* Negative margin to offset gutter */
}

.tax-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
    /* Consistent horizontal gutter */
    margin-bottom: 20px;
    box-sizing: border-box;
}

.tax-field-wrap label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1f36;
}

.tax-field-wrap label .required {
    color: #ef4444;
    margin-left: 2px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1f36;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
    /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
}

/* Custom Arrow for Select */
.select-type::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.input-container input:focus,
.input-container select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-container input::placeholder {
    color: #94a3b8;
}

/* Date Field Specifics - Matching Image 1 */
.date-type input {
    background: #f1f5f9;
    border-color: transparent;
    padding-left: 48px;
    cursor: pointer;
}

.calendar-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    color: #475569;
}

.field-note {
    font-size: 13px;
    color: #ff7a21;
    margin-top: 6px;
    font-weight: 500;
}

.tax-section-title {
    width: 100%;
    padding: 0 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.tax-section-title h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1f36;
    margin-bottom: 8px;
}

/* Addon Rows */
.tax-addon-row {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.tax-addon-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.addon-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1f36;
}

.addon-icon-box svg {
    width: 24px;
    height: 24px;
}

.addon-info {
    flex: 1;
    padding: 0 20px;
}

.addon-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1f36;
}

.addon-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.addon-action-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

.addon-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff7a21;
    white-space: nowrap;
}

.tax-field-wrap.has-error .input-container input,
.tax-field-wrap.has-error .input-container select {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.tax-field-wrap.has-error label {
    color: #ef4444 !important;
}

/* Step 2: Declaration & Process */
.service-process-section {
    width: 100%;
    margin-bottom: 40px;
}

.service-process-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1f36;
    margin-bottom: 25px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.process-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #1a1f36;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.process-text strong {
    display: block;
    font-size: 16px;
    color: #1a1f36;
    margin-bottom: 4px;
}

.process-text p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.tax-disclaimer-box {
    width: 100%;
    background: #fffaf0;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.disclaimer-icon {
    font-size: 20px;
}

.disclaimer-content strong {
    display: block;
    color: #c2410c;
    font-size: 16px;
    margin-bottom: 5px;
}

.disclaimer-content p {
    margin: 0;
    font-size: 13px;
    color: #9a3412;
    line-height: 1.5;
}

.tax-declaration-box {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    background: #ffffff;
}

.declaration-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.declaration-input-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.declaration-input-row label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f36;
    cursor: pointer;
}

.declaration-bullets {
    margin: 0;
    padding-left: 45px;
    list-style-type: disc;
}

.declaration-bullets li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Counter */
.tax-counter {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.count-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #1a1f36;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.count-btn:hover {
    background: #e2e8f0;
    color: #1a1f36;
}

.tax-counter input {
    width: 40px;
    height: 35px;
    line-height: 35px;
    padding: 0;
    margin: 0;
    text-align: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-top: none;
    border-bottom: none;
    background: #ffffff;
    font-weight: 700;
    font-size: 16px;
    color: #1a1f36;
    outline: none;
    box-sizing: border-box;
}

/* Toggle */
.tax-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.tax-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Sidebar */
.tax-sidebar {
    width: 380px;
    position: sticky;
    top: 20px;
}

.sidebar-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-box h3 {
    background: var(--primary);
    color: white;
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-inner {
    padding: 24px;
}

.service-period-badge {
    background: #f8fafc;
    color: #475569;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-plan {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.summary-row.primary {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.summary-plan p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 15px 0;
}

.summary-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-features li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.summary-features li span {
    color: #22c55e;
    font-weight: bold;
}

.summary-total-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.summary-total {
    background: #f0fdf4;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #dcfce7;
}

.summary-total p {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
}

.price-val {
    font-size: 44px;
    font-weight: 800;
    color: #166534;
    margin: 8px 0;
}

.sidebar-badges {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-item {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.badge-item small {
    display: block;
    font-size: 11px;
    color: #ff7a21;
    font-weight: 500;
}

.sidebar-help {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.help-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.tax-btn {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.plan-btn {
    color: white;
    width: 100%;
}

.tax-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-next {
    background: #ff7a21;
    color: white;
}

.btn-back {
    background: #f1f5f9;
    color: var(--text-main);
}

.sidebar-trust-footer {
    margin-top: 30px;
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 5px;
}

.trust-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 992px) {
    .tax-form-wrapper {
        flex-direction: column;
    }

    .tax-sidebar {
        width: 100%;
        position: static;
    }

    .tax-pricing-grid {
        grid-template-columns: 1fr;
    }
}
}