/* OTOFIX - Araç Satış Sayfası Stilleri */

/* ====== Hero Bölümü ====== */
.sell-car-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6)), 
                url('../assets/images/otofix-showroomm.png') no-repeat center center/cover;
    /* Fallback if the image is also missing */
    background-color: #202020;
    padding: 90px 0;
    color: var(--light-text-color);
    text-align: left;
    z-index: 1;
}

.sell-car-hero-content {
    max-width: 100%;
    margin: 0;
    padding: 40px 20px;
    text-align: left !important;
    color: #ffffff !important;
    background-color: transparent;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.sell-car-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff !important;
    text-align: left !important;
}

.sell-car-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: left !important;
}

.sell-car-section .sell-car-hero-content * {
    color: #ffffff !important;
}

.sell-car-section .container .sell-car-hero-content,
.sell-car-section .container .sell-car-hero-content h1,
.sell-car-section .container .sell-car-hero-content p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.sell-car-section .container {
    text-align: left !important;
}

.sell-car-section .sell-car-hero-content .benefit-text {
    color: #ffffff !important;
}

/* Sayfa özelinde hero section arkaplanını sıfırlama */
.sell-car-page-hero::before {
    background-image: none !important;
}

.sell-car-page-hero {
    background-color: #000000 !important;
}

.sell-car-section .sell-car-hero-content .benefit-icon {
    color: #ffffff !important;
}

/* Eski .sell-car-hero selector'ları için fallback */
.sell-car-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left !important;
}

.sell-car-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.9;
    text-align: left !important;
}

.sell-car-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 25px 20px;
    border-radius: 15px;
    width: 100%;
    min-height: 150px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.benefit-text {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.sell-car-section .benefit-text {
    color: #ffffff !important;
}

/* Mobilde sadece 3 avantaj göster (Hızlı İşlem gizlensin) */
@media (max-width: 600px) {
    .sell-car-benefits .benefit-hide-mobile {
        display: none !important;
    }
}

/* ====== Araç Satış Adımları ====== */
.sell-car-steps {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.process-steps::after {
    content: '';
    position: absolute;
    top: 45px;
    left: 90px;
    right: 90px;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.process-step p {
    font-size: 0.95rem;
    color: #666;
    max-width: 220px;
}

/* ====== Parça Bazlı Hasar Yüzdeleri Tablosu ====== */
.part-damage-percentage-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.part-damage-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.part-damage-table thead tr {
    background: linear-gradient(135deg, #B71C1C 0%, #8a1414 100%);
    color: white;
}

.part-damage-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.part-damage-table th:first-child {
    text-align: left;
}

.part-damage-table th:nth-child(2) {
    background: #28a745;
    text-align: center;
}

.part-damage-table th:nth-child(3) {
    background: #dc3545;
    text-align: center;
    border-right: none;
}

.part-damage-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.part-damage-table tbody tr:hover {
    background-color: #f8f9fa;
}

.part-damage-table tbody td {
    padding: 12px 15px;
    font-weight: 500;
    color: #333;
}

.part-damage-table tbody td:first-child {
    font-weight: 500;
}

.part-damage-table tbody td:nth-child(2),
.part-damage-table tbody td:nth-child(3) {
    text-align: center;
}

.part-damage-table tfoot tr {
    background: #f0f0f0;
    font-weight: 600;
}

.part-damage-table tfoot td {
    padding: 15px;
    color: #333;
}

.part-damage-table tfoot td:nth-child(2) {
    color: #28a745;
    text-align: center;
}

.part-damage-table tfoot td:nth-child(3) {
    color: #dc3545;
    text-align: center;
}

.part-painted-input,
.part-replaced-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.part-painted-input:focus,
.part-replaced-input:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.part-painted-input:hover,
.part-replaced-input:hover {
    border-color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .part-damage-percentage-section {
        padding: 15px;
        margin-top: 30px;
    }
    
    .part-damage-table {
        font-size: 0.9rem;
    }
    
    .part-damage-table th,
    .part-damage-table td {
        padding: 10px 8px;
    }
    
    .part-painted-input,
    .part-replaced-input {
        width: 70px;
        padding: 6px;
        font-size: 13px;
    }
    
    .part-damage-table th:first-child,
    .part-damage-table td:first-child {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .part-damage-percentage-section {
        padding: 12px;
    }
    
    .part-damage-table {
        font-size: 0.85rem;
    }
    
    .part-damage-table th,
    .part-damage-table td {
        padding: 8px 6px;
    }
    
    .part-painted-input,
    .part-replaced-input {
        width: 60px;
        padding: 5px;
        font-size: 12px;
    }
}

/* ====== Form Bölümü ====== */
.sell-car-form-section {
    padding: 80px 0;
    background-color: #fff;
    scroll-margin-top: 120px;
    scroll-padding-top: 120px;
}

.sell-car-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 50px;
}

/* Form gridi ve grupları */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

/* Mobil ekranlar için iyileştirmeler */
@media (max-width: 768px) {
    .sell-car-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    
    .form-step {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .expertise-flex {
        gap: 24px;
    }
    
    .expertise-svg-wrapper {
        max-width: 100%;
    }
    
    #expertiseSchema {
        height: 400px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-step {
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .form-buttons button {
        padding: 12px 18px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .sell-car-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .benefit-item {
        padding: 20px 15px;
        min-height: 130px;
    }
    
    .benefit-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .benefit-text {
        font-size: 14px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        padding: 15px;
    }
    
    #expertiseSchema {
        height: 360px;
    }
    
    .legend {
        font-size: 12px;
    }
    
    .part-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Dokunmatik kullanım için iyileştirmeler */
@media (hover: none) {
    .btn:active, button:active {
        opacity: 0.9;
        transform: scale(0.98);
        transition: transform 0.1s, opacity 0.1s;
    }
    
    .faq-question {
        transition: background-color 0.2s;
    }
    
    .faq-question:active {
        background-color: rgba(0,0,0,0.05);
    }
}

/* Form alanları için dokunmatik iyileştirmeler */
.form-group select,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    touch-action: manipulation;
}

/* Form hata stili için CSS ekliyorum: */
.form-group input.error-field,
.form-group select.error-field {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: #555;
}

/* Form adım gezinme */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    counter-reset: step;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-step::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    line-height: 36px;
    border: 2px solid #ddd;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.progress-step::after {
    content: '';
    position: absolute;
    width: calc(100% - 40px);
    height: 2px;
    background-color: #ddd;
    top: 18px;
    left: calc(50% + 20px);
    z-index: -1;
    transition: all 0.3s ease;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active {
    color: var(--primary-color);
}

.progress-step.active::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.progress-step.completed::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.progress-step.completed::after {
    background-color: var(--primary-color);
}

/* Form adımları */
.form-step {
    display: none;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.form-step.active {
    display: block;
}

.form-step h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.form-step p {
    color: #666;
    margin-bottom: 25px;
}

/* Form butonları */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-next, .btn-submit {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background: #a31818;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.2);
}

.btn-prev {
    background: #f1f1f1;
    color: #333;
}

.btn-prev:hover {
    background: #e1e1e1;
    transform: translateY(-3px);
}

/* Geri butonu (mobil) */
.step-back {
    position: absolute;
    top: 8px;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    margin-bottom: 15px;
}

/* Değerleme sonucu */
#valuationResult {
    text-align: center;
    padding: 20px 10px;
}

.result-icon {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon.success { background-color: #28a745; }
.result-icon.error { background-color: #dc3545; }

.offer-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.result-info {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

.valuation-result-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-inline {
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-inline-primary {
    background: var(--primary-color);
    color: white;
}

.btn-inline-primary:hover {
    background: #a31818;
    transform: translateY(-3px);
}

.btn-inline-secondary {
    background: #f1f1f1;
    color: #333;
}

.btn-inline-secondary:hover {
    background: #e1e1e1;
    transform: translateY(-3px);
}

/* ====== SSS Bölümü ====== */
.sell-car-faq {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.toggle-icon {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* ====== Mobil Uyumluluk ====== */
@media (max-width: 900px) {
    .sell-car-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    
    .benefit-item {
        padding: 20px 15px;
        min-height: 140px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .benefit-text {
        font-size: 0.9rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-steps::after {
        display: none;
    }
    
    .sell-car-form-container {
        padding: 30px 20px;
    }
    
    .progress-bar {
        overflow-x: auto;
        padding-bottom: 15px;
    }
    
    .progress-step {
        font-size: 0;
        min-width: 70px;
    }
    
    .progress-step::before {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }
    
    .progress-step::after {
        top: 15px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .expertise-flex {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .sell-car-hero {
        padding: 60px 0;
        margin-top: 0;
    }
    
    .sell-car-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    /* Header görünürlüğü garantisi */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .benefit-item {
        width: 100%;
        padding: 12px;
        min-height: 110px;
        height: auto;
    }
    
    .form-step h4 {
        font-size: 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
