/* Modern Tasarım - Sağlığınız Güvende */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Modern Renk Paleti */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  
  /* Nötr Renkler */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --bottombar-height: 80px; /* Bottombar yüksekliğini buradan ayarlayın */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Header Bölümü */
.site {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: 2rem auto;
  max-width: 1200px;
  overflow: hidden;
}

.header-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header-content {
  position: relative;
  z-index: 1;
}

.doctor-info h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.doctor-info .specialty {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.doctor-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.doctor-image:hover {
  transform: scale(1.05);
}

.evaluation-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.evaluation-image:hover {
  transform: scale(1.05);
}

/* Form Bölümü */
.form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
  padding-bottom: var(--bottombar-height);
}

/* Mobil cihazlar için bottombar yüksekliği */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  height: var(--bottombar-height);
  min-height: var(--bottombar-height);
  max-height: var(--bottombar-height);
}

.fixed-bottom img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.formdocs {
  max-width: 800px;
  margin: 0 auto;
}

/* Progress Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-200);
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gray-500);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step.current {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step.complete {
  border-color: var(--success-color);
  background: var(--success-color);
  color: var(--white);
}

/* Form Content */
.formcontent {
  display: none;
  animation: fadeIn 0.5s ease;
}

.formcontent.current {
  display: block;
}

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

.fields {
  margin-bottom: 2rem;
}

.fields span {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form Elements */
.form__field {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form__field legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.form__field small {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.form__choice-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.form__choice-wrapper:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
}

.form__choice-wrapper input[type="checkbox"] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.form__choice-wrapper span {
  font-weight: 500;
  color: var(--gray-700);
  margin: 0;
}

/* Select Elements */
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  transition: all 0.3s ease;
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Input Elements */
input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Labels */
label {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--white);
}

.btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site {
    margin: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .header-section {
    padding: 1.5rem 0;
  }
  
  .form-container {
    padding: 1.5rem;
    margin: 1rem 0;
    padding-bottom: calc(var(--bottombar-height) + env(safe-area-inset-bottom));
  }
  
  .steps {
    margin-bottom: 1.5rem;
  }
  
  .step {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  /* Mobilde bottombar için ekstra güvenlik */
  .fixed-bottom {
    height: auto;
    min-height: 60px;
  }

  /* Butonların bottombar'ın üstünde kalmasını sağla */
  .buttons {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-section {
    padding: 1rem 0;
  }
  
  .form-container {
    padding: 1rem;
    padding-bottom: 9rem; /* Çok küçük ekranlarda daha fazla boşluk */
  }
  
  .fields span {
    font-size: 1rem;
  }
  
  .form__choice-wrapper {
    padding: 0.75rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  /* Çok küçük ekranlarda bottombar için ekstra güvenlik */
  .fixed-bottom {
    min-height: 70px;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.formcontent.current {
  animation: slideIn 0.5s ease;
}

/* Success Message */
.result {
  text-align: center;
  padding: 2rem;
}

.result h3 {
  color: var(--success-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.result p {
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* Discount Badge */
.discount-badge {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--warning-color) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

/* Grid Layout */
.sm\:d-grid {
  display: grid;
  gap: 2rem; /* Aralığı artırdım */
  align-items: end;
}

@media (min-width: 640px) {
  .sm\:grid-col-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Select ve label hizası için */
.form__field label {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
}

.form__field {
  display: flex;
  flex-direction: column;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; } 

.select-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.select-group label {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-800);
}
.select-group select {
  max-width: 400px;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .select-group select {
    max-width: 100%;
  }
} 

.choices {
  width: 100%;
  font-size: 1.15rem;
}

.choices__list--dropdown, .choices__list[aria-expanded] {
  z-index: 9999 !important;
  position: absolute !important;
}

.custom-bottombar {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0.75rem 1rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.bottombar-text {
  width: 100%;
  display: block;
  text-align: center;
  color: var(--white);
}
.bottombar-btn {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.2rem;
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
}
.bottombar-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Review badge (header sağ kutu) */
.review-badge {
  background: rgba(255,255,255,0.10);
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem 1rem 1.5rem;
  box-shadow: 0 2px 12px 0 #0002;
  display: inline-block;
  min-width: 220px;
  text-align: left;
}
.stars {
  font-size: 2.1rem;
  color: #FFD700;
  letter-spacing: 0.1rem;
  margin-bottom: 0.2rem;
}
.review-count {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4ee6c7;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.review-platforms {
  border-top: 2px solid #4ee6c7;
  padding-top: 0.3rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.dt-logo {
  color: #10b981;
  font-size: 1.3rem;
  margin-right: 0.2rem;
}
.doctorsa-logo {
  color: #f43f5e;
  font-size: 1.3rem;
  margin-right: 0.2rem;
}

/* Discount badge hover efekti */
.discount-badge {
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.discount-badge:hover {
  box-shadow: 0 4px 24px 0 #ffb34780;
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

/* Seçenek kutusu hover ve checked daha belirgin */
.form__choice-wrapper {
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.form__choice-wrapper:hover {
  border: 2px solid #00bcd4;
  box-shadow: 0 2px 12px 0 #00bcd420;
  background: #e0f7fa33;
}
.form__choice-wrapper input[type="checkbox"]:checked + span {
  color: #00bcd4;
  font-weight: 700;
}
.form__choice-wrapper input[type="checkbox"]:checked {
  accent-color: #00bcd4;
}

.doctor-desc {
  color: #e0f7fa;
  font-size: 1.05rem;
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .review-badge {
    min-width: 0;
    width: 95vw;
    max-width: 98vw;
    padding: 0.8rem 0.5rem 0.7rem 0.5rem;
    border-radius: 1rem;
    margin: 0 auto;
    text-align: center;
  }
  .stars {
    font-size: 1.3rem;
  }
  .review-count {
    font-size: 1.05rem;
  }
  .review-platforms {
    font-size: 0.95rem;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.2rem;
  }
}