/**
 * SmileCrew Payment Calculator Styles
 * Version: 1.0.0
 */

/* ============================================
   CALCULATOR WRAPPER
   ============================================ */

.smilecrew-calculator-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.smilecrew-calculator-container {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */

.smilecrew-calc-header {
    position: relative;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.smilecrew-calc-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.smilecrew-calc-header-content {
    position: relative;
    z-index: 1;
}

.smilecrew-calc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.smilecrew-calc-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.smilecrew-calc-header p {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.95;
}

/* ============================================
   BODY
   ============================================ */

.smilecrew-calc-body {
    padding: 2.5rem 2rem;
}

.smilecrew-calc-section {
    margin-bottom: 2.5rem;
}

.smilecrew-calc-section:last-child {
    margin-bottom: 0;
}

.smilecrew-calc-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.smilecrew-calc-label svg {
    color: #06b6d4;
}

/* ============================================
   TREATMENT CARDS
   ============================================ */

.smilecrew-treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.smilecrew-treatment-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smilecrew-treatment-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.smilecrew-treatment-card.active {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
}

.smilecrew-treatment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    color: #06b6d4;
    transition: all 0.3s ease;
}

.smilecrew-treatment-card.active .smilecrew-treatment-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #0e7490;
}

.smilecrew-treatment-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.smilecrew-treatment-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #06b6d4;
    margin: 0;
}

.smilecrew-treatment-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #06b6d4;
    border-radius: 50%;
    color: #ffffff;
}

.smilecrew-treatment-card.active .smilecrew-treatment-check {
    display: flex;
}

/* ============================================
   SLIDERS
   ============================================ */

.smilecrew-slider-container {
    margin-top: 1rem;
}

.smilecrew-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #e2e8f0;
    outline: none;
    transition: all 0.2s;
}

.smilecrew-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transition: all 0.2s;
}

.smilecrew-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.5);
}

.smilecrew-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transition: all 0.2s;
}

.smilecrew-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.5);
}

.smilecrew-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.smilecrew-slider-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #06b6d4;
}

/* ============================================
   TERM BUTTONS
   ============================================ */

.smilecrew-term-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.smilecrew-term-btn {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    background: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.smilecrew-term-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.smilecrew-term-btn.active {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0e7490;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* ============================================
   INTEREST TOGGLE
   ============================================ */

.smilecrew-interest-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smilecrew-toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.smilecrew-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.smilecrew-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 9999px;
}

.smilecrew-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.smilecrew-toggle-switch input:checked + .smilecrew-toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.smilecrew-toggle-switch input:checked + .smilecrew-toggle-slider:before {
    transform: translateX(26px);
}

.smilecrew-interest-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.smilecrew-calc-results {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.smilecrew-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.smilecrew-results-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.smilecrew-results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #06b6d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.smilecrew-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.smilecrew-result-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.smilecrew-result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.smilecrew-result-primary {
    grid-column: span 2;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.smilecrew-result-primary::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.smilecrew-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.smilecrew-result-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smilecrew-result-primary .smilecrew-result-label {
    color: rgba(255, 255, 255, 0.9);
}

.smilecrew-result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.smilecrew-result-primary .smilecrew-result-value {
    font-size: 3rem;
    color: #ffffff;
}

.smilecrew-result-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
}

.smilecrew-result-success {
    color: #10b981 !important;
}

/* ============================================
   BREAKDOWN CHART
   ============================================ */

.smilecrew-breakdown {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.smilecrew-breakdown h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.smilecrew-breakdown-bars {
    margin-bottom: 1rem;
}

.smilecrew-breakdown-bar {
    display: flex;
    height: 60px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.smilecrew-breakdown-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
}

.smilecrew-breakdown-down {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.smilecrew-breakdown-insurance {
    background: linear-gradient(135deg, #10b981, #059669);
}

.smilecrew-breakdown-monthly {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.smilecrew-breakdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.smilecrew-breakdown-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.smilecrew-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.smilecrew-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.smilecrew-legend-down {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.smilecrew-legend-insurance {
    background: linear-gradient(135deg, #10b981, #059669);
}

.smilecrew-legend-monthly {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* ============================================
   CTA BUTTON
   ============================================ */

.smilecrew-calc-cta {
    text-align: center;
}

.smilecrew-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.smilecrew-calc-btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.smilecrew-calc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5);
}

.smilecrew-calc-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

/* ============================================
   INFO CARDS
   ============================================ */

.smilecrew-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.smilecrew-info-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.smilecrew-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.smilecrew-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.smilecrew-info-icon-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.smilecrew-info-icon-green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.smilecrew-info-icon-purple {
    background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
    color: #6b21a8;
}

.smilecrew-info-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.smilecrew-info-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .smilecrew-calc-header {
        padding: 2rem 1.5rem;
    }

    .smilecrew-calc-header h2 {
        font-size: 1.75rem;
    }

    .smilecrew-calc-body,
    .smilecrew-calc-results {
        padding: 2rem 1.5rem;
    }

    .smilecrew-treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .smilecrew-term-buttons {
        grid-template-columns: 1fr;
    }

    .smilecrew-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .smilecrew-result-primary {
        grid-column: span 1;
    }

    .smilecrew-result-primary .smilecrew-result-value {
        font-size: 2.5rem;
    }

    .smilecrew-results-grid {
        grid-template-columns: 1fr;
    }

    .smilecrew-breakdown-label {
        font-size: 0.75rem;
    }

    .smilecrew-info-cards {
        grid-template-columns: 1fr;
    }

    .smilecrew-calc-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .smilecrew-treatment-grid {
        grid-template-columns: 1fr;
    }

    .smilecrew-calc-header h2 {
        font-size: 1.5rem;
    }

    .smilecrew-breakdown-bar {
        height: 40px;
    }

    .smilecrew-breakdown-label {
        display: none;
    }
}
