/* Form Step Tasarımı - Modern ve Temiz (Corporate Style) */
:root {
    --step-primary: var(--color-primary, #002855);
    --step-primary-rgb: 0, 40, 85; 
    --step-text: #1a1a1a;
    --step-text-light: #6c757d;
    --step-bg-light: #f8f9fa;
    --step-border: #e9ecef;
}

.step-form[data-type="year"] {
    display: block;
}

.form-step {
    margin: 40px 0;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for fixed header */
.layout-radius.blog-section-five {
    padding-top: 120px; /* Adjust based on header height */
}

/* Modern Progress Steps Tasarımı - Enhanced */
.progress-steps {
    margin: 60px 0 40px;
    position: relative;
    padding: 0;
}

.progress-bar-container {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 6px; /* Slightly thicker background track */
    background-color: #f1f3f5;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--step-primary) 0%, #1e5c94 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(var(--step-primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

/* Shine effect on progress bar */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    list-style: none;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #f1f3f5;
    color: var(--step-text-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.step.active .step-number {
    background-color: var(--step-primary);
    border-color: #fff; /* White border for contrast against track */
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--step-primary-rgb), 0.2), 0 10px 25px -5px rgba(var(--step-primary-rgb), 0.5);
    transform: scale(1.15);
    animation: pulse 2s infinite;
}

.step.completed .step-number {
    background-color: var(--step-primary);
    border-color: var(--step-primary);
    color: transparent;
}

.step.completed .step-number::after {
    content: '\eb7a'; /* RemixIcon check-line */
    font-family: 'remixicon';
    display: block;
    position: absolute;
    color: #fff;
    font-size: 24px;
    font-weight: normal;
}

.step-text {
    font-size: 14px;
    color: var(--step-text-light);
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
    max-width: 140px;
    line-height: 1.4;
    opacity: 0.6;
    margin-top: 5px;
}

.step.active .step-text {
    color: var(--step-primary);
    font-weight: 700;
    opacity: 1;
    transform: translateY(2px);
    text-shadow: 0 0 1px rgba(var(--step-primary-rgb), 0.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--step-primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(var(--step-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--step-primary-rgb), 0); }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Seçim Kutuları Tasarımı */
.form-list-select {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center; /* Center items */
}

.form-list-select li {
    flex: 0 0 calc(20% - 12px);
    cursor: pointer;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--step-border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--step-text);
    text-align: center;
    height: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.step-form[data-type="brands"] .form-list-select li {
    flex-direction: column;
    padding: 20px 10px;
}

.step-form[data-type="brands"] .form-list-select li img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    margin: 0 auto 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.form-list-select li:hover {
    border-color: var(--step-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-form[data-type="brands"] .form-list-select li:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.form-list-select li.selected {
    background: var(--step-primary);
    color: #fff;
    border-color: var(--step-primary);
    box-shadow: 0 5px 15px rgba(var(--step-primary-rgb), 0.3);
}

.step-form[data-type="brands"] .form-list-select li.selected img {
    filter: brightness(0) invert(1); /* Make white */
    opacity: 1;
}

/* Step Form Tasarımı */
.step-form {
    display: none;
    margin-bottom: 30px;
    text-align: center; /* Center headers */
}

.step-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.step-form h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--step-text);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.step-form h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--step-primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Main Row Sizing */
.step-content-row {
    min-height: 400px;
    position: relative;
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 50;
    display: none;
    backdrop-filter: blur(2px);
    border-radius: 16px;
    /* display: flex removed because JS likely overrides with block */
}

.loading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--step-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-left {
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--step-border);
    background: #fff;
    color: var(--step-text-light);
    display: none; /* Initially hidden */
}

.btn-left i {
    margin-right: 5px;
}

.btn-left:hover {
    background: var(--step-bg-light);
    color: var(--step-text);
    border-color: #dee2e6;
}

/* Search Wrapper */
.brand-search {
    margin-bottom: 25px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--step-text-light);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.brand-search-input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 45px;
    border: 1px solid var(--step-border);
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.brand-search-input:focus {
    border-color: var(--step-primary);
    box-shadow: 0 0 0 4px rgba(var(--step-primary-rgb), 0.1);
    outline: none;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
    .form-list-select li {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .form-list-select li {
        flex: 0 0 calc(33.333% - 10px);
        font-size: 14px;
        padding: 10px;
    }

    .step-form[data-type="body_type"] .form-list-select li,
    .step-form[data-type="models"] .form-list-select li {
        flex: 0 0 calc(50% - 10px); /* 2 columns on mobile for these types */
    }
    
    .step-text {
        font-size: 12px;
        margin-top: 5px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .progress-bar-container {
        top: 18px; 
    }
}

@media (max-width: 576px) {
    .form-list-select li {
        flex: 0 0 calc(50% - 8px);
    }
    
    .step-text {
        display: none; /* Hide text on very small screens if needed, or keep */
    }
    
    .step-indicators {
        justify-content: center;
        gap: 15px;
    }
    
    .step {
        flex: 0 0 auto;
        max-width: none;
    }
    
    .progress-bar-container {
        display: none; /* Hide bar on mobile for cleaner look */
    }
} 
/* Modern Form Elements for Step 2+ */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-label {
    font-weight: 600;
    color: var(--step-text);
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
}

/* Modern Input & Select */
.modern-input, .modern-select {
    height: 54px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 0 20px;
    font-size: 15px;
    color: var(--step-text);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 100%;
}

.modern-input:focus, .modern-select:focus {
    background-color: #fff;
    border-color: var(--step-primary);
    box-shadow: 0 0 0 4px rgba(var(--step-primary-rgb), 0.1);
    outline: none;
}

.input-wrapper, .select-wrapper {
    position: relative;
}

.input-info {
    font-size: 12px;
    color: var(--step-text-light);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--step-text-light);
}

/* Custom Radio Cards (Tramer) */
.radio-group-modern {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-content {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-content i {
    font-size: 24px;
    color: var(--step-text-light);
    transition: all 0.3s ease;
}

.card-content .radio-text {
    font-weight: 600;
    color: var(--step-text);
}

.radio-card input:checked + .card-content {
    background: #fff;
    border-color: var(--step-primary);
    box-shadow: 0 5px 15px rgba(var(--step-primary-rgb), 0.15);
}

.radio-card input:checked + .card-content i {
    color: var(--step-primary);
}

.radio-card:hover .card-content {
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.radio-card input:checked + .card-content {
    transform: translateY(0);
}

/* Currency Badge */
.currency-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--step-text-light);
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* Modern Button */
.btn-modern-primary {
    background: var(--step-primary);
    color: #fff;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(var(--step-primary-rgb), 0.3);
}

.btn-modern-primary:hover {
    background: #001f4d; /* Darker shade of primary */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(var(--step-primary-rgb), 0.4);
}

@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }
}

/* Valuation Sidebar Styles */
.valuation-sidebar {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    position: relative;
    border: 1px solid #e9ecef;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--step-primary);
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--step-primary);
    margin: 0;
    line-height: 1.3;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: rgba(var(--step-primary-rgb), 0.1);
    color: var(--step-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.info-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--step-text);
    margin-bottom: 5px;
}

.info-content p {
    font-size: 13px;
    color: var(--step-text-light);
    line-height: 1.5;
    margin: 0;
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: var(--step-text-light);
    text-align: center;
    font-weight: 500;
}

.sidebar-footer i {
    color: #27ae60;
    margin-right: 5px;
    font-size: 14px;
    vertical-align: middle;
}

/* Step 3 - Damage Selection Specific Styles */

.damage-selection-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
}

.damage-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.damage-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.damage-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.part-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.part-name {
    font-weight: 700;
    color: var(--step-primary);
    font-size: 16px;
}

.damage-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    flex: 1;
    min-width: 70px;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.option-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-btn span {
    display: block;
    padding: 8px 5px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    font-size: 13px;
    font-weight: 500;
    color: var(--step-text);
    transition: all 0.2s ease;
}

/* Option Colors */
.option-btn.original input:checked + span {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.option-btn.local input:checked + span {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.option-btn.painted input:checked + span {
    background-color: #fd7e14;
    color: #fff;
    border-color: #fd7e14;
}

.option-btn.changed input:checked + span {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.option-btn:hover span {
    border-color: var(--step-primary);
}

/* Chassis Grid */
.chassis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.chassis-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chassis-title {
    font-size: 14px; 
    font-weight: 600;
    color: var(--step-text);
}

.chassis-options {
    display: flex;
    gap: 10px;
}

/* Visual Sidebar */
.visual-card {
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    text-align: center;
}

.visual-header h5 {
    font-weight: 700;
    color: var(--step-primary);
    margin-bottom: 5px;
}

.car-visual-wrapper {
    margin: 20px 0;
    position: relative;
    /* Ensure styles for SVG paths are handled here or in global css */
}

/* SVG Path Styles */
.car-visual-wrapper svg path {
    /* transition: all 0.3s ease;
    stroke: #fff;
    stroke-width: 1px; */
}

.visual-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 13px;
    color: var(--step-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.original { background-color: #28a745; }
.dot.local { background-color: #ffc107; }
.dot.painted { background-color: #fd7e14; }
.dot.changed { background-color: #dc3545; }

/* Valuation Result & SMS Verification Styles */
.valuation-success-card {
    border-top: 4px solid var(--step-primary);
}

.price-box-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 0 0 1px #fff, 0 10px 30px rgba(0,0,0,0.05);
    display: inline-block;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.price-card-inner {
    position: relative;
    z-index: 2;
}

.valuation-price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--step-primary);
    text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--step-text-light);
    opacity: 0.8;
}

.btn-soft-secondary {
    background-color: #e9ecef;
    color: var(--step-text);
    border: 1px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-soft-secondary:hover {
    background-color: #dee2e6;
    color: #000;
    transform: translateY(-2px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-primary-light {
    background-color: rgba(0, 40, 85, 0.1); /* Fallback for rgb variable */
}

.verification-input-group input {
    letter-spacing: 0.5em !important;
    font-weight: 700;
}

.comparison-visual .vs-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.comparison-table td {
    padding: 12px;
}

/* Responsive adjustments for Step 3 */
@media (max-width: 991px) {
    .visual-sidebar {
        margin-top: 30px;
        position: static !important; /* Disable sticky on tablet/mobile */
        z-index: 1 !important;
    }
    
    .damage-parts-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
}

