﻿/* ===================================================
   Spor Salonu Form - Landing Page Styles
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* --primary, --primary-soft, --primary-rgb, --primary-dark are injected by PHP */
    --error:         #dc2626;
    --error-soft:    #fee2e2;
    --bg:            #111111;
    --card-bg:       #ffffff;
    --text:          #1a1a1a;
    --text-muted:    #6b7280;
    --text-light:    rgba(255,255,255,0.9);
    --border:        #e5e7eb;
    --radius:        14px;
    --shadow:        0 12px 48px rgba(0,0,0,0.30);
}

html, body {
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

/* ── Site header – white bar with logo ── */
.site-header {
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    position: relative;
    z-index: 10;
}

.site-logo {
    max-height: 56px;
    object-fit: contain;
}

.site-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Page wrapper – gradient bg ── */
.page-wrapper {
    min-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 3.5rem;
    position: relative;
    background:
        radial-gradient(ellipse 120% 70% at 50% 0%,
            rgba(var(--primary-rgb), 0.42) 0%,
            rgba(var(--primary-rgb), 0.18) 40%,
            transparent 70%),
        linear-gradient(180deg, var(--primary-dark) 0%, #111111 40%);
}

/* ── Hero text ── */
.hero-text {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ── Form Card ── */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 540px;
}

/* ── Form step block ── */
.form-step {
    margin-bottom: 1.4rem;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.step-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* ── Field layout ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-group label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.req { color: var(--primary); }

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}

.field-group input::placeholder,
.field-group select::placeholder,
.field-group textarea::placeholder {
    color: #adb5bd;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.field-group input.is-invalid,
.field-group select.is-invalid,
.field-group textarea.is-invalid {
    border-color: var(--error);
}

.field-group textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.field-error {
    font-size: 0.8rem;
    color: var(--error);
    min-height: 1em;
}

/* ── Alert box ── */
.alert-box {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-box.alert-error   { background: var(--error-soft); color: var(--error); border: 1px solid #fca5a5; }
.alert-box.alert-success { background: #f0fdf4; color: #166534;         border: 1px solid #bbf7d0; }

/* ── KVKK checkbox row ── */
.kvkk-row {
    margin: 0.5rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.kvkk-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.kvkk-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-link:hover { opacity: 0.8; }

/* ── CTA Button ── */
.btn-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    margin-top: 0.25rem;
}

.btn-cta:hover  { filter: brightness(0.88); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Benefits list ── */
.benefits-list {
    list-style: none;
    max-width: 540px;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.check-icon svg { width: 13px; height: 13px; color: #fff; }

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-kvkk {
    max-width: 520px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-kvkk h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.kvkk-content {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.75;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.modal-icon svg { width: 32px; height: 32px; stroke: #16a34a; }

.modal-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .form-card { padding: 1.5rem 1.1rem; }
    .hero-title { font-size: 1.8rem; }
    .step-heading { font-size: 0.9rem; }
}

