/**
 * Stone Clean Calculator - Styles
 */

.scc-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Input Section */
.scc-input-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

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

.scc-form-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Area Input */
.scc-area-input {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scc-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

.scc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.scc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.scc-area-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scc-area-number input {
    width: 80px;
    text-align: center;
    font-size: 16px;
    padding: 8px;
}

.scc-unit {
    color: #666;
    font-weight: 500;
}

/* Packages */
.scc-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scc-package-option {
    position: relative;
}

.scc-package-radio {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.scc-package-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.scc-package-radio:checked + .scc-package-label {
    border-color: #28a745;
    background: #f0fff4;
}

.scc-package-radio:hover + .scc-package-label {
    border-color: #28a745;
}

.scc-package-name {
    font-weight: 600;
    color: #333;
}

.scc-package-price {
    color: #28a745;
    font-weight: 600;
}

/* Options */
.scc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scc-option {
    display: flex;
    align-items: center;
}

.scc-option-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #28a745;
}

.scc-option-label {
    display: flex;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
}

.scc-option-name {
    color: #333;
}

.scc-option-price {
    color: #666;
}

/* Result Section */
.scc-result-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Savings Banner */
.scc-savings-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.scc-savings-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.scc-savings-amount {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.scc-savings-percent {
    font-size: 18px;
    opacity: 0.9;
}

/* Breakdown */
.scc-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.scc-breakdown h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.scc-breakdown-cleaning h4 {
    color: #28a745;
}

.scc-breakdown-relaying h4 {
    color: #6c757d;
}

.scc-position {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.scc-position:last-child {
    border-bottom: none;
}

.scc-position-label {
    flex: 1;
    color: #333;
}

.scc-position-calc {
    color: #666;
    margin: 0 16px;
}

.scc-position-total {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.scc-position-discount {
    color: #28a745;
}

.scc-position-discount .scc-position-total {
    color: #28a745;
}

.scc-breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #ddd;
    font-size: 18px;
    font-weight: 700;
}

.scc-breakdown-cleaning .scc-breakdown-total {
    color: #28a745;
}

/* Lead Form */
.scc-lead-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.scc-lead-form h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
}

.scc-form-row {
    margin-bottom: 12px;
}

.scc-form-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.scc-form-row input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.scc-submit-btn {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scc-submit-btn:hover {
    background: #218838;
}

/* Lead Message */
.scc-lead-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.scc-lead-success {
    background: #d4edda;
    color: #155724;
}

.scc-lead-error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .scc-calculator .row {
        flex-direction: column;
    }

    .scc-area-input {
        flex-direction: column;
        align-items: stretch;
    }

    .scc-slider {
        width: 100%;
    }

    .scc-area-number {
        justify-content: center;
        margin-top: 12px;
    }

    .scc-savings-amount {
        font-size: 24px;
    }

    .scc-position {
        flex-wrap: wrap;
    }

    .scc-position-calc {
        width: 100%;
        order: 3;
        margin: 4px 0 0 0;
        text-align: left;
    }
}
