/**
 * Rhyme Export — rhx-forms.css
 *
 * Hizmet formları (egitim, etsy-danismanlik, shopify-danismanlik) için ek alan stilleri.
 * iletisim.css'i tamamlar, çakışmaz. Sadece yeni alan tipleri için scope'lanmıştır.
 *
 * Kullanım: <form data-rhx-form="..."> içinde:
 *   - .rhx-radio-group  → mağaza durumu radio grubu
 *   - .rhx-select       → tarih/saat dropdown'ları (.field içinde)
 *   - .rhx-helper       → küçük yardımcı metin (label altı)
 */

/* ==== Radio group: Mağaza durumu ==== */
.rhx-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rhx-radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rhx-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1A1A1A;
  background: rgba(245, 241, 234, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.rhx-radio-group label:hover {
  border-color: rgba(255, 95, 0, 0.4);
  background: rgba(255, 95, 0, 0.05);
}

.rhx-radio-group input[type="radio"]:checked + label {
  background: #FF5F00;
  color: #fff;
  border-color: #FF5F00;
  box-shadow: 0 4px 12px rgba(255, 95, 0, 0.25);
}

.rhx-radio-group input[type="radio"]:focus-visible + label {
  outline: 2px solid #FF5F00;
  outline-offset: 2px;
}

/* ==== Select dropdown'ları (tarih/saat) ==== */
.field select.rhx-select {
  width: 100%;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #1A1A1A;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.field select.rhx-select:focus {
  outline: none;
  border-color: #FF5F00;
  box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.1);
}

.field select.rhx-select:hover {
  border-color: rgba(26, 26, 26, 0.3);
}

/* ==== Yardımcı küçük metin ==== */
.rhx-helper {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.55);
  font-style: italic;
}

/* ==== Tarih/Saat satırı: yan yana grid ==== */
.rhx-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .rhx-datetime-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==== "İsteğe bağlı" rozet (label yanı) ==== */
.rhx-optional {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.06);
  color: rgba(26, 26, 26, 0.55);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ==== Info kolon stilleri (2-col form sayfaları için) ==== */
.rhx-info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rhx-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.85);
}

.rhx-info-list li strong {
  color: #FF5F00;
  font-weight: 600;
}

.rhx-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 95, 0, 0.12);
  color: #FF5F00;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.rhx-info-note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid #FF5F00;
  background: rgba(255, 95, 0, 0.04);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.78);
  font-style: italic;
}

.rhx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.rhx-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rhx-stat strong {
  font-size: 1.65rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.rhx-stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.55);
  font-weight: 500;
}

@media (max-width: 768px) {
  .rhx-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .rhx-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
  }
}


/* ==== Success card (form submit sonrası) ==== */
.rhx-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.04);
  animation: rhx-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rhx-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 95, 0, 0.1);
  color: #FF5F00;
  margin-bottom: 1.5rem;
  animation: rhx-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.rhx-success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

.rhx-success-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.65);
  margin: 0;
  max-width: 32rem;
}

@keyframes rhx-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rhx-icon-pop {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}


/* ==== Error message banner (inline form üstü) ==== */
.rhx-error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid #d33;
  background: rgba(220, 50, 50, 0.06);
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #1A1A1A;
  animation: rhx-fade-in 0.3s ease-out;
}

.rhx-error-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d33;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.rhx-error-text {
  flex: 1;
  color: rgba(26, 26, 26, 0.85);
}
