.ssc-calculator-wrapper {
    --ssc-primary: #2563EB;
    --ssc-primary-dark: #1E40AF;
    --ssc-primary-light: #3B82F6;
    --ssc-accent: #10B981;
    --ssc-accent-dark: #059669;
    --ssc-dark: #0F172A;
    --ssc-gray: #64748B;
    --ssc-gray-light: #94A3B8;
    --ssc-light-bg: #F8FAFC;
    --ssc-border: #E2E8F0;
    --ssc-white: #FFFFFF;
    

    --ssc-radius: 16px; 
    

    --ssc-wrapper-bg: transparent;
    
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    line-height: 1.5;
    color: var(--ssc-dark);
}

.ssc-calculator-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


#ssc-root {
    width: fit-content; 
    max-width: 100%; 
    background-color: transparent;
    padding: 0;
    border-radius: 0;  
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ssc-step {
    width: 900px; 
    max-width: 100%;
}


.ssc-main-box {
    background: var(--ssc-white);
    border-radius: var(--ssc-radius);
    
  
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.08);
    

    border: 1px solid rgba(226, 232, 240, 0.6);
    
    display: flex;
    flex-direction: row;
    overflow: visible; 
    width: 100%;
    position: relative;
}

.ssc-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: var(--ssc-white);
    border-top-left-radius: var(--ssc-radius);
    border-bottom-left-radius: var(--ssc-radius);
}

.ssc-action-section {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(180deg, #FAFBFC 0%, var(--ssc-white) 100%);
    border-left: 1px solid var(--ssc-border);
    border-radius: 0 var(--ssc-radius) var(--ssc-radius) 0; 
    gap: 16px;
    z-index: 2;
}


.ssc-top-bar {
    display: flex;
    align-items: center; 
    padding: 16px 24px;
    border-bottom: 1px solid var(--ssc-border);
    background: #fff; 
    border-radius: var(--ssc-radius) 0 0 0; 
}

.ssc-type-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ssc-gray-light);
    letter-spacing: 0.5px;
    margin-right: 12px;
}

.ssc-toggles-group {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 4px;
    gap: 3px;
}

.ssc-toggle {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--ssc-gray);
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    user-select: none;
    margin-bottom: 0;
}

.ssc-toggle input { display: none; }
.ssc-toggle:hover:not(:has(input:checked)) { 
    color: var(--ssc-dark); 
    background: rgba(255,255,255,0.6); 
}
.ssc-toggle:has(input:checked) {
    color: var(--ssc-primary);
    background: var(--ssc-white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


.ssc-reset-btn {
    margin-left: 3px; 
    background: transparent;
    border: 1px solid transparent;
    color: var(--ssc-gray-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ssc-reset-btn:hover {
    background: #F1F5F9;
    color: var(--ssc-primary);
}

.ssc-clear-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ssc-gray-light);
    letter-spacing: 0.5px;
    margin-left: auto;
    margin-right: 8px;
}

.ssc-row-location {
    display: grid;
    grid-template-columns: 1fr 1fr 200px; 
    border-bottom: 1px solid var(--ssc-border);
}

.ssc-row-vehicle {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 200px;
}


.ssc-field {
    position: relative;
    padding: 12px 20px;
    border-right: 1px solid var(--ssc-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px; 
    transition: background 0.2s, box-shadow 0.2s;
    background: #fff;
}
.ssc-field:last-child { border-right: none; }

.ssc-field:focus-within { 
    background: #FAFBFC; 
    box-shadow: inset 0 -3px 0 var(--ssc-primary);
}


.ssc-row-vehicle .ssc-field:first-child {
    border-bottom-left-radius: var(--ssc-radius);
}

.ssc-searchable-select {
    position: relative; 
    overflow: visible;
}

.ssc-sublabel {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ssc-gray-light);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    display: block;
}


.ssc-input-lg {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--ssc-dark);
    padding: 0 4px;
    outline: none;
    cursor: pointer;
    height: 24px;
    margin: 0;
    box-shadow: none;
    transition: color 0.2s;
}

.ssc-input-lg:disabled {
    cursor: not-allowed;
    color: #CBD5E1; 
    background: transparent;
    -webkit-text-fill-color: #CBD5E1;
    opacity: 1;
}

.ssc-input-lg::placeholder {
    color: #94A3B8;
    font-weight: 400;
    font-style: normal; 
    opacity: 1;
}

.ssc-icon-input { padding-left: 46px; }
.ssc-icon-marker {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(241, 245, 249, 1);
}
.pickup-icon { background: var(--ssc-accent); }
.delivery-icon { background: var(--ssc-primary); }


.ssc-suggestions {
    position: absolute;
    top: calc(100% + 1px);
    left: -1px; 
    right: -1px;
    background: var(--ssc-white);
    border: 1px solid var(--ssc-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none; 
}

.ssc-suggestions li {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ssc-dark);
    border-bottom: 1px solid transparent;
    transition: all 0.15s;
    text-align: left;
}

.ssc-suggestions li:hover {
    background-color: #F8FAFC;
    color: var(--ssc-primary);
}


.ssc-radio-field {
    background: transparent;
    padding: 12px 20px;
    justify-content: center;
}
.ssc-radio-group {
    display: flex;
    flex-direction: row;
    background: #F1F5F9;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    height: 40px;
    width: 100%;
}
.ssc-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--ssc-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0;
    position: relative;
}
.ssc-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.ssc-radio:has(input:checked) {
    background: var(--ssc-white);
    color: var(--ssc-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ssc-radio:hover:not(:has(input:checked)) {
    color: var(--ssc-dark);
}


.ssc-btn-large {
    background: #5aabf9;
    color: var(--ssc-white);
    border: none;
    height: 52px;
    padding: 0 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.25),
        0 2px 6px rgba(37, 99, 235, 0.15);
    text-shadow: none;
}

.ssc-btn-large:hover:not(:disabled) { 
    transform: translateY(-3px); 
    box-shadow: 
        0 8px 20px rgba(37, 99, 235, 0.35),
        0 4px 12px rgba(37, 99, 235, 0.2);
}

.ssc-btn-large:active:not(:disabled) { 
    transform: translateY(-1px); 
    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.25),
        0 2px 6px rgba(37, 99, 235, 0.15);
}

.ssc-btn-large:disabled {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}


.ssc-price-wrap { 
    text-align: center; 
    margin-bottom: 8px;
    color: var(--ssc-accent-dark) !important; 
    font-weight: 800;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -1.5px;
}
.ssc-price-label { 
    display: block; 
    font-size: 11px; 
    color: var(--ssc-gray); 
    margin-bottom: 4px; 
    font-weight: 600; 
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.ssc-price-val { color: var(--ssc-accent-dark); font-size: 28px; }


.ssc-step-2-wrapper {
    background: var(--ssc-white);
    padding: 40px;
    border-radius: var(--ssc-radius);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    margin: 0 auto; 
    width: 100%;
    max-width: 680px; 
}

.ssc-quote-header { 
    margin-bottom: 24px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid var(--ssc-border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.ssc-quote-header h3 { 
    font-size: 22px; 
    margin: 0; 
    color: var(--ssc-dark);
    font-weight: 700;
}
.ssc-contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
}
.ssc-input { 
    height: 52px; 
    border: 1px solid var(--ssc-border); 
    border-radius: 12px; 
    padding: 0 18px; 
    width: 100%; 
    font-size: 15px; 
    background: #fff; 
    transition: all 0.2s;
}
.ssc-input:focus {
    border-color: var(--ssc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ssc-btn-primary { 
    height: 52px; 
    background: #5aabf9;
    color: white; 
    border: none; 
    border-radius: 12px; 
    padding: 0 32px; 
    font-weight: 700; 
    font-size: 16px;
    cursor: pointer; 
    width: 100%; 
    margin-top: 10px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.25),
        0 2px 6px rgba(37, 99, 235, 0.15);
}
.ssc-btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 
        0 8px 20px rgba(37, 99, 235, 0.35),
        0 4px 12px rgba(37, 99, 235, 0.2);
}

/* УСПЕХ */
#ssc-success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

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

.ssc-success-icon {
    margin: 0 auto 24px;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.ssc-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ssc-dark);
    margin-bottom: 12px;
}

.ssc-success-text {
    font-size: 16px;
    color: var(--ssc-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#ssc-new-quote-btn {
    max-width: 300px;
    margin: 0 auto;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .ssc-step { width: 100%; } 
    
    .ssc-main-box { flex-direction: column; overflow: hidden; }
    
    .ssc-action-section { 
        width: 100%; 
        border-left: none; 
        border-top: 1px solid var(--ssc-border); 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 20px 24px; 
        border-radius: 0 0 var(--ssc-radius) var(--ssc-radius); 
    }
    
    .ssc-row-vehicle .ssc-field:first-child {
        border-bottom-left-radius: 0;
    }

    .ssc-top-bar { 
        border-radius: var(--ssc-radius) var(--ssc-radius) 0 0; 
    }
    
    .ssc-btn-large { width: auto; min-width: 200px; }
    .ssc-price-wrap { text-align: left; margin-bottom: 0; font-size: 26px; }
    
    .ssc-row-location, .ssc-row-vehicle { grid-template-columns: 1fr 1fr; }
    .ssc-row-location .ssc-radio-field, 
    .ssc-row-vehicle .ssc-radio-field { 
        grid-column: span 2; 
        border-top: 1px solid var(--ssc-border); 
        border-left: none; 
    }
    .ssc-row-vehicle .ssc-field:nth-child(3) { border-right: none; } 
}

@media (max-width: 640px) {
    #ssc-root { 
        padding: 0;
        width: 100%; 
    }
    
    .ssc-main-box {
        border-radius: 12px;
    }
    
    .ssc-step-2-wrapper {
        padding: 24px;
        border-radius: 12px;
    }
    
    .ssc-row-location, .ssc-row-vehicle { display: flex; flex-direction: column; }
    .ssc-field { border-right: none; border-bottom: 1px solid var(--ssc-border); min-height: 68px; }
    .ssc-action-section { flex-direction: column; gap: 16px; align-items: stretch; }
    .ssc-btn-large { width: 100%; }
    .ssc-price-wrap { text-align: center; }
    .ssc-contact-grid { grid-template-columns: 1fr; }
    .ssc-quote-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    
    .ssc-suggestions { 
        position: static; 
        border-radius: 0; 
        border-left: none; 
        border-right: none; 
        box-shadow: none; 
        border-top: 1px solid #eee; 
    }
    .ssc-success-title { font-size: 20px; }
    .ssc-success-text { font-size: 14px; }
}


.ssc-step2-description {
    
   margin-bottom: 20px;
    
}


.ssc-button-footer-text  {
    
margin-top: 20px;
font-size: 13px;
    
}


.ssc-input.ssc-error-border {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}


.ssc-clear-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ssc-gray-light);
    letter-spacing: 0.5px;
    margin-right: 12px;
}


@media (max-width: 640px) {
    .ssc-type-label,
    .ssc-clear-label {
        display: none;
    }
    
    .ssc-top-bar {
        justify-content: space-between;
    }
    
    .ssc-toggles-group {
        flex: 1;
        margin-right: 8px;
    }
}