/**
 * Transfer Rezervasyon Sistemi CSS
 * Modern, responsive ve kullanıcı dostu tasarım
 */

/* ----- GENEL AYARLAR ----- */
:root {
  --primary-color: #4a6fa5;
  --primary-hover: #3a5a8f;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-bg: #f8f9fa;
  --dark-text: #343a40;
  --light-text: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ----- REZERVASYON FORMU KAPSAYICI ----- */
.rezervasyon-form-container {
  font-family: var(--font-family);
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ----- ADIM GÖSTERGESİ ----- */
.adim-gosterge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.adim-nokta {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: var(--transition);
}

.adim-nokta.aktif {
  background-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(74, 111, 165, 0.5);
}

.adim-cizgi {
  flex-grow: 1;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 10px;
}

/* ----- BAŞLIK ALANI ----- */
.adim-baslik {
  text-align: center;
  margin-bottom: 30px;
}

.adim-baslik h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.adim-baslik p {
  color: var(--secondary-color);
  font-size: 16px;
}

/* ----- FORM ELEMANLARI ----- */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.25);
  outline: none;
}

/* ----- BUTONLAR ----- */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.geri-btn,
.ileri-btn,
.rezervasyon-btn,
.gonder-btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.geri-btn {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.geri-btn:hover {
  background-color: #5a6268;
}

.ileri-btn,
.gonder-btn,
.rezervasyon-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.ileri-btn:hover,
.gonder-btn:hover,
.rezervasyon-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

/* ----- ARAÇ SEÇİM ALANI ----- */
#arac-secim-alani {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.trs-arac-karti {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  
  background-color: white;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trs-arac-karti:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.trs-arac-karti img {
  width: 100%;
  height: 180px;
  
}

.trs-arac-detay {
  padding: 15px;
  flex-grow: 1;
}

.trs-arac-detay h4 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.trs-arac-detay p {
  margin: 8px 0;
  color: var(--dark-text);
}

.trs-arac-secim {
  padding: 15px;
  background-color: var(--light-bg);
  display: flex;
  justify-content: center;
}

/* ----- Radio buton özelleştirme ----- */
.trs-arac-secim input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
  cursor: pointer;
}

.trs-arac-secim label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

/* ----- MESAJ ALANLARI ----- */
.success-message,
.error-message {
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  text-align: center;
}

.success-message {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #155724;
}

.error-message {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #721c24;
}

/* ----- TÜM ARAÇLAR SAYFASI ----- */
.tum-araclar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.tum-araclar-container h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 28px;
}

.arac-karti {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: white;
}

.arac-karti:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.arac-karti img {
  width: 100%;
  height: 250px;
  
}

.arac-detay {
  padding: 20px;
}

.arac-detay h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
}

.arac-detay p {
  margin: 10px 0;
  font-size: 16px;
  color: var(--dark-text);
}

/* ----- RESPONSIVE TASARIM ----- */
@media (min-width: 768px) {
  /* Tablet ve Masaüstü için grid düzeni */
  .tum-araclar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .tum-araclar-container h2 {
    grid-column: 1 / -1;
  }
  
  .arac-karti {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  /* Mobil Cihazlar için ayarlar */
  .rezervasyon-form-container {
    padding: 20px 15px;
    margin: 15px auto;
  }
  
  .adim-nokta {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .adim-baslik h3 {
    font-size: 20px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .geri-btn, 
  .ileri-btn,
  .rezervasyon-btn,
  .gonder-btn {
    width: 100%;
  }
  
  #arac-secim-alani {
    grid-template-columns: 1fr;
  }
  
  /* Araç kartını yatay düzen yap - mobil cihazlar için */
  .trs-arac-karti {
    flex-direction: row;
  }
  
  .trs-arac-karti img {
    width: 40%;
    height: auto;
  }
  
  .trs-arac-detay {
    width: 60%;
  }
}

/* ----- TÜM ARAÇLAR DÜZENİ RESPONSIVE ----- */
@media (min-width: 992px) {
  /* Masaüstü için araç kartlarını satır düzeninde göster */
  .arac-karti {
    flex-direction: row;
    height: 250px;
  }
  
  .arac-karti img {
    width: 40%;
    height: 100%;
  }
  
  .arac-detay {
    width: 60%;
    display: flex;
    flex-direction: column;
  }
  
  .rezervasyon-btn {
    margin-top: auto;
    align-self: flex-start;
  }
}

/* ----- FORM DOLDURULDUĞUNDA EFEKT ----- */
.form-group input:valid,
.form-group select:valid {
  border-color: #28a745;
}

/* ----- HOVER EFEKTLER ----- */
.trs-arac-karti:hover .trs-arac-detay h4,
.arac-karti:hover .arac-detay h3 {
  color: var(--primary-hover);
}

/* ----- GEÇİŞ ANİMASYONLARI ----- */
.rezervasyon-form-container,
.trs-arac-karti,
.arac-karti,
.success-message,
.error-message {
  animation: fadeIn 0.5s ease-in-out;
}

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

.trs-arac-karti {
  font-size: 0.9rem;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 1rem;
}

.trs-arac-karti img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.trs-arac-detay p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.trs-arac-secim {
  margin-top: 0.5rem;
  text-align: center;
}

.trs-arac-secim input[type="radio"] {
  transform: scale(1.2);
}


.trs-arac-karti {
  width: 100%;
  max-width: 350px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.trs-arac-karti img {
  width: 100%;
  height: auto;
  
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.trs-arac-detay {
  padding: 1rem;
}

.trs-arac-detay h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #1f3c88;
}

.trs-arac-detay p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #333;
}

.trs-arac-karti::after {
  content: "";
  display: block;
  height: 6px;
  background-color: #1f3c88;
  margin-top: auto;
}


.arac-karti {
  width: 100%;
  max-width: 350px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.arac-karti img {
  width: 100%;
  height: auto;
  
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.arac-detay {
  padding: 1rem;
}

.arac-detay h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #1f3c88;
}

.arac-detay p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #333;
}

.arac-karti::after {
  content: "";
  display: block;
  height: 6px;
  background-color: #1f3c88;
  margin-top: auto;
}


.arac-karti {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  
  font-size: 0.85rem;
  max-width: 550px;
  margin: 1rem;
}

.arac-karti img {
  width: 50%;
  height: auto;
  
}

.arac-detay {
  width: 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arac-detay h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #1f3c88;
}

.arac-detay p {
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

.arac-detay::after {
  content: "";
  display: block;
  height: 6px;
  background-color: #1f3c88;
  margin-top: 1rem;
  width: 100%;
  border-radius: 4px;
}


.trs-arac-karti {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  
  font-size: 0.85rem;
  max-width: 550px;
  margin: 1rem;
}

.trs-arac-karti img {
  width: 50%;
  height: auto;
  
}

.trs-arac-detay {
  width: 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trs-arac-detay h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #1f3c88;
}

.trs-arac-detay p {
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

.trs-arac-detay::after {
  content: "";
  display: block;
  height: 6px;
  background-color: #1f3c88;
  margin-top: 1rem;
  width: 100%;
  border-radius: 4px;
}


.trs-arac-detay::after {
  content: "";
  display: block;
  height: 6px;
  background-color: #fc6200;
  margin-top: 1rem;
  width: 100%;
  border-radius: 4px;
}


.geri-btn,
.ileri-btn,
.rezervasyon-btn,
.gonder-btn {
  background-color: #fc6200 !important;
  color: #fff !important;
  border: none;
}

.geri-btn:hover,
.ileri-btn:hover,
.rezervasyon-btn:hover,
.gonder-btn:hover {
  background-color: #e65a00 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* === EK: Modern Araç Kartları ve Seçim Butonları === */

/* Seçim Butonu */
.trs-arac-secim label {
  display: inline-block;
  background-color: #fc6200;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.trs-arac-secim input[type="radio"] {
  display: none;
}

.trs-arac-secim input[type="radio"]:checked + span {
  background-color: #fff;
  color: #fc6200;
  border: 2px solid #fc6200;
}

/* Seçilen kart vurgulama */
.trs-arac-karti.selected {
  border: 2px solid #fc6200;
  box-shadow: 0 0 12px rgba(252, 98, 0, 0.4);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Modern kart görünümü */
#arac-secim-alani {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.trs-arac-karti {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.trs-arac-karti:hover {
  transform: translateY(-4px);
}

.trs-arac-karti img {
  width: 100%;
  height: 200px;
  
}

.trs-arac-detay {
  padding: 16px;
  font-size: 0.9rem;
  color: #333;
}

.trs-arac-detay h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #1f3c88;
}

.trs-arac-detay p {
  margin: 4px 0;
  font-size: 0.85rem;
}

.trs-arac-detay::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background-color: #fc6200;
  border-radius: 2px;
  margin-top: 10px;
}



/* Modern Rezervasyon Formu Stili */
.rezervasyon-form-container form select,
.rezervasyon-form-container form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 18px;
    font-size: 16px;
    background-color: #fff;
    margin-bottom: 16px;
    box-shadow: none;
    outline: none;
    appearance: none;
}

.rezervasyon-form-container label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #444;
}

.rezervasyon-form-container .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.rezervasyon-form-container .form-actions button {
    padding: 12px 20px;
    border-radius: 18px;
    border: none;
    background-color: #ff6a00;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
    margin-left: 8px;
}

.rezervasyon-form-container .form-actions button.geri-btn {
    background-color: #f0f0f0;
    color: #333;
    margin-left: 0;
}

img { object-fit: contain !important; max-height: 220px; width: auto; display: block; margin: 0 auto; }
