/**
 * Corporation Tax Styles
 * Extends tax-return.css base styles
 */

/* ─── Year Selection Page ─── */
.ia-ct-year-select-card {
    background: rgba(78, 48, 179, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
}

.ia-ct-year-info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.ia-ct-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ia-ct-info-row + .ia-ct-info-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ia-ct-info-label {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.ia-ct-info-value {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}

/* ─── Form Styles ─── */
.ia-ct-form-card {
    background: rgba(78, 48, 179, 0.4);
    border-radius: 20px;
    padding: 40px;
}

.ia-ct-form-group {
    margin-bottom: 24px;
}

.ia-ct-form-group label {
    display: block;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.ia-ct-form-group label .required {
    color: #FF7518;
}

.ia-ct-field-hint {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.ia-ct-form-group select.ia-ct-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A79AD1' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.ia-ct-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ia-ct-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

.ia-ct-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ia-ct-input:-webkit-autofill,
.ia-ct-input:-webkit-autofill:hover,
.ia-ct-input:-webkit-autofill:focus,
.ia-ct-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #4F39A0 inset !important;
    box-shadow: 0 0 0 9999px #4F39A0 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
    outline: 0 !important;
    outline-color: transparent !important;
    outline-style: none !important;
    border: none !important;
}

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

/* Date inputs special styling */
.ia-ct-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ─── Form Actions ─── */
.ia-ct-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ─── Step Header ─── */
.ia-ct-step-number {
    display: inline-block;
    background: rgba(255, 119, 7, 0.2);
    color: #FF7518;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ─── Upload Card ─── */

.ia-ct-drop-zone {
    background: rgba(78, 48, 179, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.ia-ct-drop-zone.drag-over {
    border-color: #FF7518;
    background: rgba(255, 119, 7, 0.1);
}

/* ─── Checklist Card ─── */
.ia-ct-checklist-card {
    background: rgba(78, 48, 179, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
}

.ia-ct-checklist-card h3 {
    font-family: 'Clash Grotesk Display', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.ia-ct-checklist-info {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.ia-ct-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ia-ct-checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.ia-ct-checklist-item.enabled {
    border-left: 3px solid #FF7518;
}

.ia-ct-checklist-item.disabled {
    opacity: 0.6;
    border-left: 3px solid transparent;
}

.ia-ct-checklist-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ia-ct-checklist-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ia-ct-checklist-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ia-ct-checklist-name {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}

/* ─── Badges ─── */
.ia-ct-badge {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ia-ct-badge-required {
    background: rgba(255, 119, 7, 0.2);
    color: #FF7518;
}

.ia-ct-badge-optional {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ─── File Count ─── */
.ia-ct-file-count {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.ia-ct-file-count.has-files {
    color: #4CAF50;
    font-weight: 700;
}

.ia-ct-checklist-link {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FF7518;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ia-ct-checklist-link:hover {
    color: #FF9437;
}

/* ─── Toggle Switch ─── */
.ia-ct-toggle-always-on {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #4CAF50;
}

.ia-ct-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ia-ct-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ia-ct-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.ia-ct-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ia-ct-switch input:checked + .ia-ct-switch-slider {
    background: #FF7518;
}

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

/* ─── Page Subtitle ─── */
.ia-page-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ─── Form Row (side-by-side fields) ─── */
.ia-ct-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.ia-ct-form-row .ia-ct-form-half {
    flex: 1;
    margin-bottom: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ia-ct-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ia-ct-form-row .ia-ct-form-half {
        margin-bottom: 24px;
    }
    .ia-ct-year-select-card,
    .ia-ct-form-card,
    .ia-ct-checklist-card {
        padding: 24px 20px;
    }

    .ia-ct-question-card {
        padding: 24px 20px;
    }

    .ia-ct-question-header {
        gap: 14px;
        margin-bottom: 20px;
    }

    .ia-ct-question-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .ia-ct-question-icon svg {
        width: 22px;
        height: 22px;
    }

    .ia-ct-question-title {
        font-size: 16px;
    }

    .ia-ct-choice {
        padding: 12px 16px;
        gap: 10px;
    }

    .ia-ct-choice-indicator {
        width: 32px;
        height: 32px;
    }

    .ia-ct-choice-label {
        font-size: 15px;
    }

    .ia-ct-checklist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ia-ct-checklist-right {
        width: 100%;
        justify-content: space-between;
    }

    .ia-ct-form-actions {
        flex-direction: column;
    }

    .ia-ct-form-actions .ia-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .ia-ct-info-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}
