/**
 * Alimony Calculator Styles
 *
 * @package Zipper
 */

/* ===== 2-column layout (desktop) ===== */
.alc-main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    align-items: start;
}

.alc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Section card (Rule 49) ===== */
.alc-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.alc-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.alc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alc-section-title i {
    color: #d4af37;
    font-size: 15px;
}

/* ===== Input group ===== */
.alc-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.alc-input-group:last-child {
    margin-bottom: 0;
}

.alc-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    margin-bottom: 6px;
}

.alc-input-label .alc-label-hint {
    font-weight: 400;
    color: #9e9a96;
    margin-left: 4px;
}

/* ===== Number input ===== */
.alc-number-input {
    width: 80px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.alc-number-input:hover {
    border-color: #d4c67a;
}

.alc-number-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== Select ===== */
.alc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9a96' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.alc-select:hover {
    border-color: #d4c67a;
}

.alc-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== Range slider ===== */
.alc-range-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alc-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alc-range-value {
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
}

.alc-range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #d4af37 0%, #e8e4dc 0%);
    outline: none;
    cursor: pointer;
}

.alc-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.alc-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.alc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9e9a96;
}

/* ===== Checkbox group ===== */
.alc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.alc-checkbox-label:hover {
    border-color: #d4c67a;
}

.alc-checkbox-label.active {
    background: linear-gradient(135deg, #fdfbf5, #faf6ec);
    border-color: #d4af37;
    color: #2d2a26;
}

.alc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-top: 1px;
    accent-color: #d4af37;
    flex-shrink: 0;
}

/* ===== Inline group ===== */
.alc-inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alc-unit {
    font-size: 12px;
    color: #9e9a96;
    white-space: nowrap;
}

/* ===== Hint text ===== */
.alc-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
    line-height: 1.4;
}

/* ===== Button group ===== */
.alc-btn-group {
    display: flex;
    gap: 8px;
}

.alc-calculate-btn {
    flex: 1;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #c9a42e 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    transition: all 0.2s;
}

.alc-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a42e 0%, #b8932a 100%);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

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

.alc-reset-btn {
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #9e9a96;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.alc-reset-btn:hover {
    background: #eae7e2;
    color: #5f5a56;
}

/* ===== Waiting section ===== */
.alc-waiting {
    text-align: center;
    padding: 48px 20px;
}

.alc-waiting i {
    font-size: 40px;
    color: #e8e4dc;
    margin-bottom: 12px;
    display: block;
}

.alc-waiting p {
    font-size: 13px;
    color: #9e9a96;
    margin: 0;
}

/* ===== Hidden utility ===== */
.alc-hidden {
    display: none !important;
}

/* ===== Result summary card (Rule 49) ===== */
.alc-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 1px solid #e8d48a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.alc-summary-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #d4af37;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.alc-summary-title {
    font-size: 12px;
    font-weight: 500;
    color: #9e9a96;
    margin-bottom: 4px;
}

.alc-summary-main {
    font-size: 26px;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.alc-summary-sub {
    font-size: 13px;
    color: #5f5a56;
    margin-bottom: 12px;
}

.alc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.alc-summary-row + .alc-summary-row {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.alc-summary-row-label {
    color: #5f5a56;
}

.alc-summary-row-value {
    font-weight: 600;
    color: #2d2a26;
}

/* ===== Factor chart section ===== */
.alc-factor-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-factor-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.alc-factor-title i {
    color: #d4af37;
    font-size: 15px;
}

.alc-factor-chart {
    position: relative;
    width: 100%;
    height: 220px;
}

.alc-factor-chart canvas {
    max-height: 220px;
}

/* ===== Reference range table ===== */
.alc-range-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-range-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.alc-range-title i {
    color: #d4af37;
    font-size: 15px;
}

.alc-range-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.alc-range-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #5f5a56;
    background: #faf9f7;
    border-bottom: 2px solid #e8e4dc;
    font-size: 12px;
}

.alc-range-table td {
    padding: 8px 10px;
    color: #2d2a26;
    border-bottom: 1px solid #f0ede8;
}

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

.alc-range-table .alc-range-highlight {
    background: linear-gradient(135deg, #fdfbf5, #faf6ec);
    font-weight: 600;
}

.alc-range-table .alc-range-max {
    color: #9e9a96;
    font-size: 11px;
}

.alc-range-source {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 8px;
    text-align: right;
}

/* ===== Case examples ===== */
.alc-case-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-case-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.alc-case-title i {
    color: #d4af37;
    font-size: 15px;
}

.alc-case-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alc-case-card {
    padding: 14px;
    background: #faf9f7;
    border: 1px solid #f0ede8;
    border-radius: 10px;
}

.alc-case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.alc-case-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #d4af37;
}

.alc-case-card-amount {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.alc-case-card-desc {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.alc-case-card-source {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== Statute of limitations ===== */
.alc-statute-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-statute-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.alc-statute-title i {
    color: #e74c3c;
    font-size: 15px;
}

.alc-statute-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fef5f5, #fdf0f0);
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin-bottom: 10px;
}

.alc-statute-alert-icon {
    font-size: 20px;
    color: #e74c3c;
    flex-shrink: 0;
}

.alc-statute-alert-text {
    font-size: 13px;
    font-weight: 600;
    color: #721c24;
    line-height: 1.4;
}

.alc-statute-info {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.6;
}

/* ===== Evidence checklist ===== */
.alc-evidence-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-evidence-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.alc-evidence-title i {
    color: #d4af37;
    font-size: 15px;
}

.alc-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alc-evidence-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 13px;
    color: #5f5a56;
}

.alc-evidence-item i {
    font-size: 14px;
    color: #d4af37;
    flex-shrink: 0;
}

/* ===== Procedure section ===== */
.alc-procedure-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.alc-procedure-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.alc-procedure-title i {
    color: #d4af37;
    font-size: 15px;
}

.alc-procedure-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 14px;
}

.alc-procedure-tab {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #9e9a96;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.alc-procedure-tab.active {
    background: #fff;
    color: #2d2a26;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.alc-procedure-content {
    display: none;
}

.alc-procedure-content.active {
    display: block;
}

.alc-procedure-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alc-procedure-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alc-procedure-step-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #d4af37;
    border-radius: 50%;
    flex-shrink: 0;
}

.alc-procedure-step-text {
    font-size: 13px;
    color: #5f5a56;
    line-height: 1.5;
    padding-top: 2px;
}

.alc-procedure-step-text strong {
    color: #2d2a26;
}

.alc-procedure-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

/* ===== PDF download button ===== */
.alc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #c0392b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.alc-download-btn:hover {
    background: #a93226;
}

/* ===== Disclaimer ===== */
.alc-disclaimer {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    padding: 14px 16px;
}

.alc-disclaimer-title {
    font-size: 12px;
    font-weight: 600;
    color: #9e9a96;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.alc-disclaimer-text {
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.6;
}

/* ===== Responsive (tablet) ===== */
@media (max-width: 900px) {
    .alc-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .alc-input-col {
        position: static;
    }

    .alc-input-col,
    .alc-result-col {
        width: 100%;
    }

    .alc-number-input,
    .alc-select {
        font-size: 16px;
    }

    .alc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .alc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== Responsive (mobile) ===== */
@media (max-width: 480px) {
    .alc-main-layout {
        gap: 12px;
    }

    .alc-section {
        padding: 14px;
    }

    .alc-summary-main {
        font-size: 22px;
    }

    .alc-btn-group {
        flex-direction: column;
    }

    .alc-calculate-btn,
    .alc-reset-btn {
        width: 100%;
    }

    .alc-range-table {
        font-size: 12px;
    }

    .alc-range-table th,
    .alc-range-table td {
        padding: 6px 8px;
    }

    .alc-case-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .alc-procedure-tabs {
        gap: 2px;
    }
}

/* ===== Reduced motion (Rule 49) ===== */
@media (prefers-reduced-motion: reduce) {
    .alc-section,
    .alc-number-input,
    .alc-select,
    .alc-calculate-btn,
    .alc-checkbox-label {
        transition: none !important;
    }

    .alc-section:hover,
    .alc-calculate-btn:hover {
        transform: none !important;
    }
}
