/**
 * Voltera Subsidy Calculator Stylesheet
 */

.voltera-calculator-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

.voltera-calculator-container * {
    box-sizing: border-box;
}

/* Header */
.vsc-header {
    text-align: center;
    margin-bottom: 32px;
}

.vsc-header-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #a7f3d0;
}

.vsc-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.vsc-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid */
.vsc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 860px) {
    .vsc-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.vsc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.vsc-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Form Groups */
.vsc-form-group {
    margin-bottom: 24px;
}

.vsc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.vsc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vsc-val-display {
    font-weight: 700;
    color: #059669;
    font-size: 15px;
}

.vsc-required {
    color: #dc2626;
}

.vsc-input-icon-wrap {
    position: relative;
}

.vsc-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.vsc-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.vsc-input-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.vsc-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* Range Slider */
.vsc-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 12px 0 6px 0;
}

.vsc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.1s;
}

.vsc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.vsc-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* Quick Sizes */
.vsc-quick-sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.vsc-size-pill {
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.vsc-size-pill:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.vsc-size-pill.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
    font-weight: 700;
}

/* Tech Toggle */
.vsc-tech-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vsc-tech-option {
    display: block;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.vsc-tech-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vsc-tech-content strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 2px;
}

.vsc-tech-content small {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.vsc-tech-option.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.vsc-tech-option.active strong {
    color: #047857;
}

/* Result Hero */
.vsc-result-hero {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-radius: 12px;
    padding: 24px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.2);
}

.vsc-result-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: #a7f3d0;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.vsc-result-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vsc-currency {
    font-size: 24px;
    font-weight: 600;
    color: #6ee7b7;
}

/* Second-Life Advantage Banner */
.vsc-sl-advantage-banner {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.vsc-sl-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.vsc-sl-text strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
}

.vsc-sl-text span {
    font-size: 12px;
    color: #d1fae5;
}

/* Breakdown Table */
.vsc-breakdown {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
    font-size: 13px;
}

.vsc-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vsc-breakdown-row:last-child {
    border-bottom: none;
}

.vsc-green-text {
    color: #047857;
}

/* Restraints */
.vsc-restraints-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 18px;
}

/* Vorabprinzip Notice */
.vsc-compliance-notice {
    display: flex;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 24px;
}

.vsc-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.vsc-compliance-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #991b1b;
}

.vsc-compliance-notice strong {
    display: block;
    margin-bottom: 2px;
}

/* Lead Magnet Form */
.vsc-lead-magnet-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.vsc-lead-magnet-section h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.vsc-lead-desc {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.vsc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 500px) {
    .vsc-form-grid {
        grid-template-columns: 1fr;
    }
}

.vsc-submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px 20px;
    background: #059669;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.vsc-submit-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.vsc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vsc-privacy-note {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Success Box */
.vsc-success-box {
    text-align: center;
    padding: 24px;
    background: #ecfdf5;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    margin-top: 14px;
}

.vsc-success-icon {
    font-size: 36px;
    color: #059669;
    margin-bottom: 8px;
}

.vsc-success-box h5 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
}

.vsc-success-box p {
    margin: 0;
    font-size: 13px;
    color: #047857;
}
