/* Osmanlıca kursu kayıt — tezhip hissi, İslami geometri */
@import url("https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Scheherazade+New:wght@400;700&display=swap");

:root {
  --osm-ink: #0d1a0f;
  --osm-forest: #0f3d2a;
  --osm-sand: #f6edd8;
  --osm-cream: #fffcf2;
  --osm-gold: #b8860b;
  --osm-gold-bright: #d4a84b;
  --osm-terra: #6b2d1a;
  --osm-border: #7a5c2b;
  --osm-glow: rgba(212, 168, 75, 0.35);
  --osm-shadow: 0 28px 80px rgba(8, 18, 12, 0.45);
  --osm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--osm-ink);
  font-family: "Amiri", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  background: #0a1f18;
  overflow-x: hidden;
}

/* Geometri + gece laciverti */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(46, 95, 72, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(88, 44, 24, 0.35) 0%, transparent 45%),
    linear-gradient(168deg, #0d241c 0%, #152e22 32%, #1a0f0a 88%);
}

/* İslami yıldız ağı (hafif) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='0.4'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M0 0l80 80M80 0L0 80'/%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3Cpath d='M0 0l40 40M40 0L0 40M40 0l40 40M40 0L80 40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.o-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10, 30, 22, 0.88) 0%, rgba(10, 30, 22, 0.5) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.o-header__inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.o-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--osm-sand);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.o-back:hover {
  color: #fff4d2;
  text-decoration: underline;
}
.o-back span {
  font-size: 1.1rem;
  opacity: 0.9;
}

.o-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.25rem 1.1rem 3.5rem;
}

/* Çerçeve: tezhip lekesi + altın sınır */
.o-panel {
  position: relative;
  background: linear-gradient(175deg, var(--osm-cream) 0%, #f0e2c8 38%, #e8d9bc 100%);
  border: 2px solid var(--osm-gold);
  border-radius: 0.2rem 1.45rem 0.2rem 1.45rem;
  box-shadow: var(--osm-glow) 0 0 0 1px, var(--osm-shadow);
  padding: clamp(1.4rem, 3.5vw, 2.15rem) clamp(1.1rem, 3vw, 1.8rem) clamp(1.6rem, 3.5vw, 2.25rem);
  overflow: hidden;
}

.o-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 0 50px rgba(201, 162, 39, 0.12);
  pointer-events: none;
}

.o-panel::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  border: 1px solid rgba(107, 45, 26, 0.18);
  border-radius: 0.1rem 1.1rem 0.1rem 1.1rem;
  pointer-events: none;
}

.o-art {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 4.2rem;
  height: 4.2rem;
  opacity: 0.2;
  color: var(--osm-terra);
  pointer-events: none;
}

.o-bismillah {
  margin: 0 0 0.35rem;
  font-family: "Scheherazade New", "Amiri", serif;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  line-height: 1.3;
  text-align: center;
  color: var(--osm-forest);
  direction: rtl;
}

.o-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  text-align: center;
  color: var(--osm-terra);
  letter-spacing: 0.02em;
}

.o-sub {
  margin: 0 0 1.45rem;
  text-align: center;
  color: #3a3024;
  font-size: 1.04rem;
  line-height: 1.55;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.o-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0.06) 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 0.4rem 0.75rem 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: #2c2414;
  position: relative;
  z-index: 1;
}
.o-note strong {
  color: var(--osm-terra);
}

.o-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.o-fld {
  display: block;
}
.o-fld__label {
  display: block;
  font-weight: 700;
  color: #2a2218;
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
}
.o-fld__hint {
  display: block;
  font-size: 0.85rem;
  color: #5a4a38;
  font-weight: 500;
  margin-top: 0.15rem;
}
.o-fld__req {
  color: #8b1a0f;
  font-weight: 800;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1.05rem;
  border: 1.5px solid rgba(90, 70, 40, 0.35);
  border-radius: 0.3rem 0.55rem 0.3rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--osm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  outline: none;
  border-color: var(--osm-gold-bright);
  box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.35);
}

.o-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.o-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(90, 70, 40, 0.28);
  border-radius: 0.3rem 0.65rem 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.o-radio:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--osm-gold);
}
.o-radio input {
  margin: 0.2rem 0 0;
  accent-color: #6b2d1a;
}
.o-radio span {
  font-size: 0.98rem;
  color: #2c2414;
  line-height: 1.45;
}
.o-radio strong {
  color: var(--osm-terra);
}

.o-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
  align-items: center;
}

.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff9ef;
  border: none;
  border-radius: 0.3rem 0.75rem 0.3rem 0.75rem;
  background: linear-gradient(175deg, #1d5a40 0%, #0f3d2a 55%, #0a2b1d 100%);
  box-shadow: 0 4px 16px rgba(7, 40, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s var(--osm-ease), box-shadow 0.15s;
}
.o-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(7, 40, 28, 0.4);
}
.o-btn:focus-visible {
  outline: 2px solid var(--osm-gold-bright);
  outline-offset: 2px;
}
.o-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.o-btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: #3a3024;
  border: 1.5px solid rgba(90, 70, 40, 0.4);
  box-shadow: none;
  font-weight: 700;
}
.o-btn--ghost:hover {
  background: #fff;
}

.o-msg {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: #7a0f0f;
  font-weight: 700;
}
.o-msg--ok {
  color: #0d4d2a;
}
.o-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.o-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(250, 245, 230, 0.55);
  position: relative;
  z-index: 1;
}
.o-footer a {
  color: #e8c97a;
  font-weight: 700;
}

.o-icons-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #c9a227;
  letter-spacing: 0.3em;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .o-title {
    font-size: 1.35rem;
  }
  .o-bismillah {
    font-size: 1.3rem;
  }
}
