/**
 * Sepenta marka renk düzeltmeleri — Educavo style.css SONRASINDA yüklenir.
 * Token tanımları: lib/brand-colors.js → layout.jsx :root enjeksiyonu
 *
 * Educavo şablonundaki turuncu accent değerleri public/educavo/style.css içinde
 * var(--sepenta-primary) ile yönetilir. Bu dosya Educavo dışı özel durumlar içindir.
 */

/* Bantec btn-one (blog vb.) — primary border/hover */
.btn-one,
.btn-two,
.btn-three {
  border-color: var(--sepenta-primary);
}

.btn-one:hover,
.btn-two:hover,
.btn-three:hover {
  background-color: var(--sepenta-primary);
  border-color: var(--sepenta-primary);
}

/* Educavo navy newsletter butonları */
.rs-newsletter.style1 .newsletter-wrap .newsletter-form button {
  background: var(--sepenta-secondary-dark);
}

.rs-newsletter.style1 .newsletter-wrap .newsletter-form button:hover {
  background: var(--sepenta-primary-dark);
}

/* Newsletter style1 footer üstüne bindiğinde widget başlıkları için boşluk */
.rs-newsletter.style1 .newsletter-wrap {
  padding: 48px 56px;
}

.main-content:has(.rs-newsletter.style1.mb--90) + #rs-footer .footer-top.no-gap {
  padding-top: 155px;
}

@media only screen and (max-width: 991px) {
  .main-content:has(.rs-newsletter.style1) + #rs-footer .footer-top.no-gap {
    padding-top: 100px;
  }

  .rs-newsletter.style1.mb--90 {
    margin-bottom: -50px;
  }
}

@media only screen and (max-width: 767px) {
  .main-content:has(.rs-newsletter.style1) + #rs-footer .footer-top.no-gap {
    padding-top: 73px;
  }
}

/* ── Auth pages (login / register / consent) ── */
.sepenta-auth-page .sepenta-auth-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(39, 60, 102, 0.1);
  padding: 48px 40px 40px;
}

.sepenta-auth-page .sepenta-auth-card--consent .styled-form {
  max-width: 680px;
}

.sepenta-auth-page .rs-login .noticed.sepenta-auth-card {
  background: #fff;
  max-width: 520px;
  padding: 48px 40px 40px;
}

.sepenta-auth-page .rs-login .noticed .main-part {
  max-width: none;
}

.sepenta-auth-page .rs-login .method-account .login {
  font-size: 32px;
  line-height: 1.2;
}

.sepenta-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-left: 4px solid #dc3545;
  border-radius: 6px;
  color: #842029;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 14px 16px;
}

.sepenta-auth-alert i {
  color: #dc3545;
  font-size: 18px;
  margin-top: 2px;
}

.sepenta-auth-divider-wrap {
  margin-top: 28px;
}

.sepenta-auth-divider {
  color: #8a96a3;
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  text-align: center;
  text-transform: lowercase;
}

.sepenta-auth-divider::before,
.sepenta-auth-divider::after {
  background: #e8eef2;
  content: "";
  height: 1px;
  position: absolute;
  top: 50%;
  width: 42%;
}

.sepenta-auth-divider::before {
  left: 0;
}

.sepenta-auth-divider::after {
  right: 0;
}

.sepenta-consent-fields {
  margin-top: 8px;
}

.sepenta-consent-block {
  background: #f9fbfc;
  border: 1px solid #e3ebf0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 22px 22px 18px;
}

.sepenta-consent-block--optional {
  background: #fff;
  border-style: dashed;
}

.sepenta-consent-block__title {
  align-items: center;
  color: var(--sepenta-secondary, #273c66);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sepenta-consent-block__badge {
  background: rgba(33, 167, 208, 0.12);
  border-radius: 999px;
  color: var(--sepenta-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 10px;
  text-transform: uppercase;
}

.sepenta-consent-block__badge--optional {
  background: #f0f3f6;
  color: #6c7a89;
}

.sepenta-consent-block__intro,
.sepenta-consent-block__notice {
  color: #6c7a89;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.sepenta-consent-block__notice {
  border-top: 1px solid #e8eef2;
  margin-bottom: 0;
  margin-top: 16px;
  padding-top: 14px;
}

.sepenta-consent-block__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sepenta-consent-option {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
}

.sepenta-consent-option__input {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sepenta-consent-option__control {
  align-items: center;
  background: #fff;
  border: 2px solid var(--sepenta-primary);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  flex: 0 0 20px;
  flex-shrink: 0;
  height: 20px;
  justify-content: center;
  margin-top: 2px;
  max-height: 20px;
  max-width: 20px;
  min-height: 20px;
  min-width: 20px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 20px;
}

.sepenta-auth-page .styled-form .sepenta-consent-fields .sepenta-consent-option__input {
  box-shadow: none !important;
  height: 1px !important;
  margin: -1px !important;
  max-height: 1px !important;
  max-width: 1px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  width: 1px !important;
}

.sepenta-consent-option__control .fa {
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sepenta-consent-option__input:checked + .sepenta-consent-option__control {
  background: var(--sepenta-primary);
  border-color: var(--sepenta-primary);
}

.sepenta-consent-option__input:checked + .sepenta-consent-option__control .fa {
  opacity: 1;
  transform: scale(1);
}

.sepenta-consent-option__input:focus-visible + .sepenta-consent-option__control {
  box-shadow: 0 0 0 3px rgba(33, 167, 208, 0.25);
}

.sepenta-consent-option__text {
  color: #505050;
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  min-width: 0;
}

.sepenta-consent-option__text a {
  color: var(--sepenta-primary);
  font-weight: 600;
  text-decoration: underline;
}

.sepenta-consent-option__text a:hover {
  color: var(--sepenta-primary-dark);
}

/* Educavo styled-form label kurallarını onay satırlarında devre dışı bırak */
.sepenta-auth-page .styled-form .sepenta-consent-fields label.sepenta-consent-option {
  margin-bottom: 0;
  padding: 0;
  position: static;
  width: auto;
}

.sepenta-auth-page .styled-form .sepenta-consent-fields label.sepenta-consent-option:before,
.sepenta-auth-page .styled-form .sepenta-consent-fields label.sepenta-consent-option:after {
  content: none;
  display: none;
}

.sepenta-auth-page .sepenta-phone-field > div {
  box-shadow: 0 0 30px #eee;
}

.sepenta-auth-page .sepenta-phone-field button,
.sepenta-auth-page .sepenta-phone-field input {
  border: none !important;
  height: 50px;
}

.sepenta-auth-loading {
  color: #6c7a89;
  font-size: 16px;
  min-height: 40vh;
}

@media only screen and (max-width: 767px) {
  .sepenta-auth-page .sepenta-auth-card,
  .sepenta-auth-page .rs-login .noticed.sepenta-auth-card {
    padding: 32px 20px 28px;
  }

  .sepenta-consent-block {
    padding: 18px 16px 14px;
  }
}
