/* ==========================================================================
   CONFY LADY REGL VE DÖNGÜ HESAPLAYICI (PERIOD CALCULATOR) WIDGET CSS
   ========================================================================== */

.confy-period-calc-wrapper {
  background: #faf7fb;
  color: #1e1b4b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.confy-period-calc-wrapper * {
  box-sizing: border-box;
}

/* RTL Uyumluluğu */
[dir="rtl"] .confy-period-calc-wrapper,
.rtl .confy-period-calc-wrapper {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .confy-period-calc-wrapper .slider-val-row,
.rtl .confy-period-calc-wrapper .slider-val-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .confy-period-calc-wrapper .faq-question,
.rtl .confy-period-calc-wrapper .faq-question {
  text-align: right;
}

/* Hero Banner */
.calc-hero-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 50%, #f3e8ff 100%);
  padding: 125px 24px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f3e8ff;
}

.calc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #db2777;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.08);
}

.calc-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2b0f4c;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.calc-hero-desc {
  font-size: 1.1rem;
  color: #581c87;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.85;
}

/* Ana Hesaplayıcı Kapsayıcı */
.calc-main-section {
  max-width: 1550px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative;
  z-index: 10;
}

.calc-grid-wrapper {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sol Taraf: Form Kartı */
.calc-form-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(67, 20, 110, 0.07);
  border: 1px solid #f1edf7;
  position: sticky;
  top: 100px;
}

.form-header-box {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3e8ff;
}

.form-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2b0f4c;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-header-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Form Alanları */
.calc-field-group {
  margin-bottom: 26px;
}

.calc-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 10px;
}

.calc-label-helper {
  font-size: 0.8rem;
  font-weight: normal;
  color: #64748b;
  display: block;
  margin-top: 3px;
}

.calc-date-input-wrap {
  position: relative;
}

.calc-date-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #ede9fe;
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #2b0f4c;
  font-weight: 600;
  background: #faf5ff;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.calc-date-input:focus {
  border-color: #9333ea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

/* Slider & Değer Kontrolü */
.slider-val-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #db2777;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-block;
  white-space: nowrap;
}

.calc-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 6px;
  background: #e9d5ff;
  outline: none;
  margin: 12px 0 14px;
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7e22ce;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(126, 34, 206, 0.4);
  border: 3px solid #ffffff;
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Hızlı Seçim Butonları */
.quick-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-pill-btn {
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-pill-btn:hover,
.quick-pill-btn.active {
  background: #7e22ce;
  border-color: #7e22ce;
  color: #ffffff;
}

/* Hesapla Butonu */
.calc-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #7e22ce 0%, #db2777 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(126, 34, 206, 0.3);
  font-family: inherit;
}

.calc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(219, 39, 119, 0.35);
  filter: brightness(1.05);
}

/* Sağ Taraf: Sonuçlar Paneli */
.calc-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Canlı Durum Kartı (Hero Stat) */
.status-summary-card {
  background: linear-gradient(135deg, #2b0f4c 0%, #4a154b 60%, #701a75 100%);
  border-radius: 28px;
  padding: 34px 36px;
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(43, 15, 76, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.status-summary-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.status-info-col {
  max-width: 65%;
  position: relative;
  z-index: 2;
}

.status-pill-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.status-subtext {
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.5;
  margin: 0;
}

.status-countdown-circle {
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.countdown-days {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffb4dc;
}

.countdown-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* 3'lü Ana Tarih Kartları */
.key-dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.key-date-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(67, 20, 110, 0.05);
  border: 1px solid #f1edf7;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.key-date-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(67, 20, 110, 0.1);
}

.key-date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.key-date-card.period-card::before {
  background: #db2777;
}

.key-date-card.ovulation-card::before {
  background: #9333ea;
}

.key-date-card.fertility-card::before {
  background: #3b82f6;
}

.key-date-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.period-card .key-date-icon {
  background: #fdf2f8;
  color: #db2777;
}

.ovulation-card .key-date-icon {
  background: #faf5ff;
  color: #9333ea;
}

.fertility-card .key-date-icon {
  background: #eff6ff;
  color: #3b82f6;
}

.key-date-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.key-date-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.key-date-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* İnteraktif Takvim Kartı */
.calendar-widget-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px 32px;
  box-shadow: 0 8px 30px rgba(67, 20, 110, 0.05);
  border: 1px solid #f1edf7;
}

.widget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2b0f4c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-legend-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-period {
  background: #db2777;
}

.dot-fertile {
  background: #a855f7;
}

.dot-ovulation {
  background: #f59e0b;
}

/* Takvim Izgarası */
.calendar-grid-container {
  border: 1px solid #f1edf7;
  border-radius: 20px;
  overflow: hidden;
}

.cal-month-nav {
  background: #faf5ff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #4c1d95;
}

.cal-nav-btn {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b21a8;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: #7e22ce;
  color: #ffffff;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid #f1edf7;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  padding: 10px 0;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 12px;
  background: #ffffff;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  transition: all 0.2s ease;
}

.cal-day-cell.other-month {
  color: #cbd5e1;
  opacity: 0.5;
}

.cal-day-cell.is-today {
  border: 2px solid #7e22ce;
  font-weight: 800;
}

.cal-day-cell.is-period {
  background: #fce7f3;
  color: #be185d;
  font-weight: 800;
}

.cal-day-cell.is-fertile {
  background: #f3e8ff;
  color: #7e22ce;
  font-weight: 700;
}

.cal-day-cell.is-ovulation {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.cal-day-subtag {
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
  text-transform: uppercase;
}

/* Gelecek 3 Ay Tahminleri */
.forecast-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(67, 20, 110, 0.05);
  border: 1px solid #f1edf7;
}

.forecast-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.forecast-item {
  background: #fdfafc;
  border: 1px solid #fae8ff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  transition: all 0.25s ease;
}

.forecast-item:hover {
  background: #ffffff;
  border-color: #f0abfc;
  box-shadow: 0 8px 22px rgba(192, 38, 211, 0.08);
  transform: translateY(-3px);
}

.forecast-month-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #7e22ce;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forecast-date-range {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.forecast-fertility {
  font-size: 0.8rem;
  color: #64748b;
}

/* Ürün Öneri Bölümü */
.period-products-section {
  background: #ffffff;
  padding: 70px 24px;
  border-top: 1px solid #f1edf7;
}

.period-products-container {
  max-width: 1550px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}

.section-header-centered .badge {
  display: inline-block;
  padding: 6px 16px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-header-centered h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.3rem;
  color: #2b0f4c;
  margin: 0 0 12px;
}

.section-header-centered p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.period-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.period-prod-card {
  background: #faf8fc;
  border-radius: 24px;
  border: 1px solid #f1edf7;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
}

.period-prod-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(43, 15, 76, 0.1);
  border-color: #e9d5ff;
}

.prod-card-phase-tag {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tag-night {
  background: #311042;
  color: #ffb4dc;
}

.tag-normal {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.tag-daily {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.period-prod-img-wrap {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.period-prod-card:hover .period-prod-img-wrap {
  transform: scale(1.08);
}

.period-prod-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.period-prod-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 10px;
}

.period-prod-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 22px;
  flex: 1;
}

.period-prod-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: #2b0f4c;
  color: #ffffff;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.period-prod-btn:hover {
  background: #db2777;
  color: #ffffff;
  transform: translateY(-2px);
}

/* SSS & Bilgi Accordion */
.calc-faq-section {
  background: #faf7fb;
  padding: 70px 24px;
}

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

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.faq-item {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #ede9fe;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b0f4c;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: #7e22ce;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* Tıbbi Uyarı Notu */
.calc-disclaimer-box {
  max-width: 900px;
  margin: 30px auto 0;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #831843;
  line-height: 1.5;
}

/* Responsive Tasarım */
@media (max-width: 1150px) {
  .calc-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-form-card {
    position: static;
  }
}

@media (max-width: 850px) {

  .key-dates-grid,
  .forecast-list,
  .period-prod-grid {
    grid-template-columns: 1fr;
  }

  .status-summary-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .status-info-col {
    max-width: 100%;
  }

  .calc-hero-title {
    font-size: 2.2rem;
  }
}