/* ===== SolarTech Rate Calculator Styles ===== */

/* --- BUTON SLIM --- */
.strc-button-wrapper {
    margin: 12px 0 16px;
}

.strc-rate-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
    font-family: inherit;
}

.strc-rate-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}

.strc-rate-button:active {
    transform: translateY(0);
    color: #ffffff;
}

.strc-rate-button:focus,
.strc-rate-button:visited {
    color: #ffffff;
}

.strc-button-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.strc-button-logo svg {
    display: block;
}

.strc-button-text {
    flex: 1;
    text-align: left;
    color: #ffffff;
}

.strc-button-text strong {
    font-weight: 700;
    color: #ffffff;
}

.strc-button-arrow {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
    color: #ffffff;
}

/* --- MODAL OVERLAY --- */
.strc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.strc-modal-overlay.strc-modal-visible {
    display: flex;
    animation: strcFadeIn 0.2s ease;
}

@keyframes strcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- MODAL CONTAINER --- */
.strc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: strcSlideUp 0.25s ease;
}

@keyframes strcSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.strc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.strc-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* --- MODAL HEADER --- */
.strc-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.strc-modal-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.strc-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* --- MODAL BODY --- */
.strc-modal-body {
    padding: 20px 24px 24px;
}

.strc-field {
    margin-bottom: 18px;
}

.strc-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.strc-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.strc-field input[type="number"]:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* --- PERIOD CONTROLS --- */
.strc-period-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strc-period-controls input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

.strc-period-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.strc-period-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.strc-period-controls input[type="number"] {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
}

.strc-period-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
    padding: 0 4px;
}

/* --- RESULTS --- */
.strc-results {
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px 16px;
    margin-top: 8px;
}

.strc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.strc-result-row:last-child {
    border-bottom: none;
}

.strc-result-label {
    font-size: 13px;
    color: #64748b;
}

.strc-result-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.strc-result-highlight .strc-result-label {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.strc-result-highlight .strc-result-value {
    font-size: 20px;
    color: #ea580c;
    font-weight: 700;
}

.strc-result-total .strc-result-value {
    color: #0f172a;
    font-weight: 700;
}

/* --- DISCLAIMER --- */
.strc-disclaimer {
    margin: 16px 0 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 520px) {
    .strc-modal {
        max-width: 100%;
        border-radius: 8px;
    }

    .strc-modal-header,
    .strc-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .strc-rate-button {
        font-size: 13px;
        padding: 9px 14px;
    }

    .strc-result-highlight .strc-result-value {
        font-size: 18px;
    }
}
