/* Akaeid Loan Calculator - Frontend Styles */
.alc-wrap,
.alc-wrap * {
    box-sizing: border-box;
}

.alc-wrap {
    --alc-accent: #ee1c25;
    --alc-dark: #111827;
    --alc-muted: #6b7280;
    --alc-line: #e5e7eb;
    --alc-soft: #f8fafc;
    --alc-white: #ffffff;
    --alc-radius: 24px;
    width: 100%;
    font-family: inherit;
    color: var(--alc-dark);
}

.alc-shell {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fbfbfc 45%, #f8fafc 100%);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--alc-radius);
    padding: 34px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.alc-shell::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -140px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, color-mix(in srgb, var(--alc-accent) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.alc-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.alc-hero-text {
    max-width: 760px;
}

.alc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--alc-accent) 10%, #ffffff);
    color: var(--alc-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alc-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.alc-title {
    margin: 0;
    color: var(--alc-dark);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.alc-subtitle {
    max-width: 740px;
    margin: 13px 0 0;
    color: var(--alc-muted);
    font-size: 16px;
    line-height: 1.7;
}

.alc-currency-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.alc-currency-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: 0.22s ease;
}

.alc-currency-btn:hover,
.alc-currency-btn.is-active {
    background: var(--alc-dark);
    color: #ffffff;
}

.alc-content-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 22px;
    align-items: stretch;
}

.alc-form,
.alc-results-panel {
    min-width: 0;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.alc-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
}

.alc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.alc-field-label {
    color: #374151;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.alc-input-wrap {
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid #d9dee8;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: 0.22s ease;
}

.alc-input-wrap:focus-within {
    border-color: color-mix(in srgb, var(--alc-accent) 70%, #ffffff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--alc-accent) 12%, transparent);
}

.alc-input-prefix,
.alc-input-suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 100%;
    color: var(--alc-muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.alc-input-suffix {
    padding-right: 14px;
}

.alc-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--alc-dark);
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    padding: 0 14px;
}

.alc-input-wrap input[type="date"] {
    color-scheme: light;
}

.alc-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.alc-btn,
.alc-whatsapp-btn,
.alc-schedule-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 13px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.alc-btn:hover,
.alc-whatsapp-btn:hover,
.alc-schedule-toggle:hover {
    transform: translateY(-2px);
}

.alc-btn-primary,
.alc-whatsapp-btn {
    color: #ffffff;
    background: var(--alc-accent);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--alc-accent) 24%, transparent);
}

.alc-btn-primary:hover,
.alc-whatsapp-btn:hover {
    color: #ffffff;
    background: var(--alc-dark);
}

.alc-btn-secondary,
.alc-schedule-toggle {
    color: var(--alc-dark);
    background: #f3f4f6;
}

.alc-btn-secondary:hover,
.alc-schedule-toggle:hover {
    color: #ffffff;
    background: var(--alc-dark);
}

.alc-results-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.alc-result-head {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--alc-dark), color-mix(in srgb, var(--alc-dark) 82%, var(--alc-accent)));
}

.alc-result-head::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    border: 26px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.alc-result-head span {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.alc-result-main {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.alc-result-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.alc-result-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 16px;
    background: var(--alc-soft);
}

.alc-result-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--alc-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.alc-result-card strong {
    display: block;
    color: var(--alc-dark);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    word-break: break-word;
}

.alc-whatsapp-btn {
    width: 100%;
}

.alc-whatsapp-btn span:first-child {
    font-size: 18px;
}

.alc-disclaimer {
    margin: 0;
    color: var(--alc-muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.alc-schedule-panel {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.alc-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.alc-schedule-header span {
    display: block;
    color: var(--alc-dark);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.alc-schedule-header p {
    margin: 6px 0 0;
    color: var(--alc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.alc-schedule-table-wrap {
    max-height: 420px;
    margin-top: 18px;
    overflow: auto;
    border: 1px solid var(--alc-line);
    border-radius: 16px;
    background: #ffffff;
}

.alc-schedule-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    margin: 0;
    background: #ffffff;
}

.alc-schedule-table th,
.alc-schedule-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef0f4;
    color: #374151;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
}

.alc-schedule-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--alc-dark);
    background: #f3f4f6;
    font-weight: 900;
}

.alc-schedule-table tr:last-child td {
    border-bottom: 0;
}

.alc-schedule-table td:first-child,
.alc-schedule-table th:first-child {
    font-weight: 800;
}

@media (max-width: 1024px) {
    .alc-content-grid {
        grid-template-columns: 1fr;
    }

    .alc-results-panel {
        order: 2;
    }
}

@media (max-width: 767px) {
    .alc-shell {
        padding: 22px;
        border-radius: 18px;
    }

    .alc-hero {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .alc-currency-switch {
        width: 100%;
        justify-content: center;
    }

    .alc-currency-btn {
        flex: 1 1 0;
    }

    .alc-form {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .alc-result-cards {
        grid-template-columns: 1fr;
    }

    .alc-schedule-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .alc-schedule-toggle {
        width: 100%;
    }

    .alc-actions .alc-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 480px) {
    .alc-shell {
        padding: 18px;
    }

    .alc-title {
        font-size: 27px;
    }

    .alc-subtitle {
        font-size: 14px;
    }

    .alc-actions {
        flex-direction: column;
    }

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