/*
 * Rotterdam Taksi Rezervasyon v1.6.0
 * Siyah & Gold Minimal Stil Dosyası
 */

/* === TEMEL AYARLAR VE RENK PALETİ === */
:root {
    --rtb-bg: #f5f5f5;
    /* Çok açık gri arka plan */
    --rtb-surface: #ffffff;
    /* Formun arka planı */
    --rtb-text: #212529;
    /* Ana metin rengi (siyaha yakın) */
    --rtb-text-muted: #6c757d;
    /* İkincil metinler */
    --rtb-border: #dee2e6;
    /* İnce kenarlıklar */
    --rtb-primary-black: #1a1a1a;
    /* Ana Siyah */
    --rtb-primary-black-hover: #000000;
    --rtb-gold: #c9a45d;
    /* Ana Gold */
    --rtb-gold-hover: #b89149;
    --rtb-gold-light: #f3ebd9;
    /* Açık gold/bej tonu */
    --rtb-error: #dc3545;
    --rtb-success: #198754;
    --rtb-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    /* Yumuşak gölge */
    --rtb-radius: 4px;
    /* Daha keskin köşeler */
    --rtb-input-focus-border: var(--rtb-gold);
    --rtb-input-focus-shadow: rgba(201, 164, 93, .25);
}

#rtb-app-root,
#rtb-app-root * {
    box-sizing: border-box;
}

/* === ANA FORM KONTEYNERİ === */
.booking-container {
    background-color: var(--rtb-surface);
    border: 1px solid var(--rtb-border);
    border-radius: 10px;
    box-shadow: var(--rtb-shadow);
    width: 100%;
    /* Biraz daha dar */
    padding: 2rem 2.5rem;
    margin: 2.5rem auto;
    margin-top: 0;
}

.rtb-loading {
    /* Aynı */
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--rtb-text-muted);
}

/* === BAŞLIKLAR === */
.booking-container h1 {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0 0 1.8rem 0;
    text-align: center;
    color: var(--rtb-primary-black);
}

.booking-container h2 {
    /* Adım Başlıkları */
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    border-bottom: 1px solid var(--rtb-border);
    padding-bottom: 0.6rem;
    color: var(--rtb-primary-black);
}

/* === ADIM GEÇİŞLERİ === */
.rtb-step {
    display: none;
}

.rtb-step.active {
    display: block;
    animation: rtbFadeIn 0.3s ease-out;
}

@keyframes rtbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === FORM GRUPLARI VE GİRDİLER === */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--rtb-text-muted);
}

input[type="text"],
input[type="datetime-local"],
input[type="email"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    padding: .55rem .9rem;
    /* Biraz daha ince inputlar */
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rtb-text);
    background-color: var(--rtb-surface);
    background-clip: padding-box;
    border: 1px solid var(--rtb-border);
    appearance: none;
    border-radius: var(--rtb-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input[type="datetime-local"] {
    padding-right: 0.5rem;
}

/* Odaklanma (Focus) stili - Gold */
input[type="text"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    color: var(--rtb-text);
    background-color: var(--rtb-surface);
    border-color: var(--rtb-gold);
    outline: 0;
    box-shadow: 0 0 0 .2rem var(--rtb-input-focus-shadow);
}

::placeholder {
    color: #adb5bd;
    opacity: 1;
}

select {
    /* Gold ok ikonu */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a45d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.8rem;
}

/* === BUTONLAR (Siyah Ana Renk) === */
.btn-primary,
.btn-secondary,
.btn-whatsapp,
#rtb-confirm-location {
    display: inline-block;
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--rtb-primary-black);
    border-radius: var(--rtb-radius);
    cursor: pointer;
    background-color: black !important;
    color: white;
    transition: all .2s ease;
}

/* Ana Buton Hover/Focus - Gold */
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--rtb-gold);
    border-color: var(--rtb-gold-hover);
    box-shadow: 0 0 0 .2rem var(--rtb-input-focus-shadow);
}

.btn-primary:disabled {
    background-color: var(--rtb-text-muted);
    border-color: var(--rtb-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* İkincil Buton (Geri) */
.btn-secondary {
    background-color: transparent;
    border-color: var(--rtb-text-muted);
    color: var(--rtb-text-muted);
    margin-top: 0.75rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--rtb-text-muted);
    color: var(--rtb-white);
    border-color: var(--rtb-text-muted);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    margin-bottom: 1rem;
}

.btn-whatsapp:hover {
    background-color: #1EBE57;
    border-color: #1EBE57;
    color: white;
}

#rtb-confirm-location {
    background-color: var(--rtb-success);
    border-color: var(--rtb-success);
    color: white;
    margin-top: 0.75rem;
}

#rtb-confirm-location:hover {
    background-color: #157347;
    border-color: #146c43;
}


/* === HARİTA === */
#rtb-map-container {
    margin: 1.5rem 0;
}

#rtb-map-container.map-hidden {
    display: none;
}

#rtb-map {
    height: 300px;
    /* Daha ince */
    width: 100%;
    border-radius: var(--rtb-radius);
    border: 1px solid var(--rtb-border);
}

/* === LOKASYON FİLTRELEME === */
.rtb-location-fieldset {
    border: 1px solid var(--rtb-border-light);
    border-radius: var(--rtb-radius);
    background-color: transparent;
    /* Arka plan yok */
}

.rtb-location-fieldset legend {
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.5rem;
    margin-left: -0.5rem;
    color: var(--rtb-text-muted);
    margin-top: 0px !important;
}

.location-type-selector {
    margin-bottom: 0.8rem;
}

.location-type-selector select {
    font-weight: 500;
    background-color: var(--rtb-light);
    border-color: var(--rtb-border-light);
}

.rtb-input-wrapper {
    display: none;
    position: relative;
}

/* === ADRES (SOKAK/NO/HARİTA) STİLLERİ === */
#rtb-from-address-wrapper,
#rtb-to-address-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: 0;
}

.street-input {
    flex: 1 1 auto;
    min-width: 100px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.number-input {
    flex: 0 0 55px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    text-align: center;
    margin-bottom: 0;
}

/* Harita Butonu - Daha Minimal */
.map-btn {
    flex: 0 0 40px;
    width: 40px;
    margin-top: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0;
    line-height: 1;
    background-color: transparent;
    /* Arka plan yok */
    border: 1px solid var(--rtb-border);
    border-left: 0;
    color: var(--rtb-text-muted);
    transition: all .2s ease;
    margin-bottom: 0;
}

.map-btn:hover {
    background-color: var(--rtb-gold-light);
    color: var(--rtb-gold-hover);
    border-color: var(--rtb-gold);
}

/* === ARAMA SONUÇLARI LİSTESİ === */
.rtb-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: calc(55px + 40px);
    /* No+Harita */
    background: var(--rtb-surface);
    border: 1px solid var(--rtb-border);
    border-top: none;
    border-radius: 0 0 var(--rtb-radius) var(--rtb-radius);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.06);
    z-index: 1001;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.rtb-autocomplete-results .result-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--rtb-border-light);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .15s ease;
}

.rtb-autocomplete-results .result-item:last-child {
    border-bottom: none;
}

.rtb-autocomplete-results .result-item:hover {
    background-color: var(--rtb-gold-light);
    color: var(--rtb-primary-black);
}

/* === ARAÇ SEÇİM EKRANI === */
.vehicle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: 1px solid darkgrey;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--rtb-surface);
}

.vehicle-option:hover {
    /* Hover - Gold Kenarlık */
    border-color: var(--rtb-gold);
    background-color: var(--rtb-surface);
    /* Arka plan değişmesin */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.vehicle-info span {
    display: block;
    font-weight: 500;
    font-size: 1rem;
    color: var(--rtb-primary-black);
}

.vehicle-info small {
    color: var(--rtb-text-muted);
    font-size: 0.8rem;
}

.vehicle-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rtb-primary-black);
}

/* Fiyat siyah */

/* === HATA MESAJI === */
#rtb-error-message {
    /* Aynı kaldı */
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem 1.25rem;
    border-radius: var(--rtb-radius);
    margin-top: 1.5rem;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* === ÖZET ALANI (ADIM 3) === */
#rtb-selected-vehicle-summary {
    background-color: var(--rtb-light);
    border: 1px solid darkgray;
    border-radius: var(--rtb-radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

#rtb-selected-vehicle-summary p {
    margin: 0.2rem 0;
}

#rtb-selected-vehicle-summary strong {
    color: var(--rtb-primary-black);
}

.rtb-bank-info {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid darkgray;
    margin-bottom: 20px !important;
}

/* === MOBİL UYUMLULUK === */
@media (max-width: 768px) {
    .booking-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .booking-container h1 {
        font-size: 1.5rem;
    }

    .booking-container h2 {
        font-size: 1.15rem;
    }

    .rtb-location-fieldset {
        padding: 1rem 1rem 1.25rem 1rem;
    }

    #rtb-map-container {
        padding-right: 10px;
        padding-left: 10px;
        margin: 0;
    }
    .form-group:has(#rtb-datetime), .form-group:has(#rtb-passengers), .form-group:has(#rtb-luggage), .form-group:has(#rtb-name), .form-group:has(#rtb-email), .form-group:has(#rtb-phone){
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .booking-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }

    .street-input {
        min-width: 0;
        font-size: 0.9rem;
    }

    .number-input {
        flex-basis: 50px;
        font-size: 0.9rem;
        padding: .55rem 0.4rem;
    }

    .map-btn {
        flex-basis: 38px;
        font-size: .85rem;
        margin-right: 0;
    }

    .rtb-autocomplete-results {
        right: 0;
    }

    .vehicle-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicle-price {
        margin-top: 0.4rem;
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-whatsapp,
    #rtb-confirm-location {
        font-size: 0.9rem;
        padding: .7rem 1rem;
    }

    #rtb-map-container {
     padding-right: 10px;
     padding-left: 10px;
    }
}