/* Boğaziçi Restaurant - Rezervasyon sayfası
   Ana sitenin (bogaziciakcakoca.com) renk ve tipografi diliyle uyumludur. */

:root {
    --primary-dark: #0f1922;
    --secondary-dark: #1a2a3a;
    --gold-accent: #d4af37;
    --gold-accent-dark: #b8952c;
    --text-light: #f8f9fa;
    --text-dark: #333333;
    --bg-light: #fdfdfd;
    --error-red: #b3261e;
    --success-green: #1e7a34;
    --radius: 8px;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header / Hero ---------- */

.site-header {
    background: var(--primary-dark);
    padding: 14px 0;
    text-align: center;
}

.site-header .logo {
    height: 48px;
    width: auto;
    margin: 0 auto;
}

.hero {
    position: relative;
    background:
        linear-gradient(rgba(15, 25, 34, 0.72), rgba(15, 25, 34, 0.88)),
        url('hero.webp') center center / cover no-repeat;
    color: var(--text-light);
    padding: 44px 0 36px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    line-height: 1.3;
    margin: 0 0 10px;
}

.hero p {
    margin: 0;
    font-size: 0.98rem;
    color: #e7e9eb;
}

.hero .hero-badge {
    display: inline-block;
    margin-top: 14px;
    background: var(--gold-accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 999px;
}

/* ---------- Info note ---------- */

.info-note {
    background: var(--secondary-dark);
    color: var(--text-light);
    font-size: 0.88rem;
    text-align: center;
    padding: 12px 20px;
}

.info-note strong { color: var(--gold-accent); }

/* ---------- Form section ---------- */

.form-section {
    padding: 28px 0 50px;
}

.form-card {
    background: #ffffff;
    border: 1px solid #e7e2d3;
    border-radius: var(--radius);
    padding: 24px 20px 26px;
    box-shadow: 0 4px 18px rgba(15, 25, 34, 0.06);
}

.form-card h2 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin: 0 0 4px;
    text-align: center;
}

.form-card .subtitle {
    text-align: center;
    color: #667;
    font-size: 0.9rem;
    margin: 0 0 22px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.field label .required {
    color: var(--error-red);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1.5px solid #d7d2c4;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--error-red);
}

.field-error {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.field.has-error .field-error {
    display: block;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hint {
    font-size: 0.8rem;
    color: #778;
    margin-top: 6px;
}

/* Honeypot: gerçek kullanıcıdan tamamen gizli */
.hp-field {
    position: absolute;
    left: -5000px;
    top: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* KVKK onay kutusu */
.kvkk-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fbf9f2;
    border: 1px solid #e7e2d3;
    border-radius: var(--radius);
    padding: 14px;
}

.kvkk-field input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--gold-accent-dark);
}

.kvkk-field label {
    font-size: 0.87rem;
    color: var(--text-dark);
    font-weight: 400;
    margin: 0;
}

.kvkk-field a {
    color: var(--gold-accent-dark);
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-text {
    display: none;
    margin-top: 14px;
    padding: 14px;
    background: #f4f2ea;
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: #444;
    line-height: 1.6;
    max-height: 220px;
    overflow-y: auto;
}

.kvkk-text.open { display: block; }

/* ---------- Buton ---------- */

.submit-btn {
    width: 100%;
    background: var(--gold-accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    margin-top: 6px;
}

.submit-btn:hover:not(:disabled) { background: var(--gold-accent-dark); }
.submit-btn:active:not(:disabled) { transform: scale(0.99); }

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ---------- Sonuç mesajları ---------- */

.form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    text-align: center;
}

.form-message.show { display: block; }

.form-message.success {
    background: #e9f6ec;
    color: var(--success-green);
    border: 1px solid #bfe3c6;
}

.form-message.error {
    background: #fbeceb;
    color: var(--error-red);
    border: 1px solid #f0c6c2;
}

.success-panel {
    display: none;
    text-align: center;
    padding: 20px 10px 8px;
}

.success-panel.show { display: block; }

.success-panel .icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.success-panel h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.success-panel p { color: #556; margin: 0 0 4px; }

.success-panel .call-us {
    margin-top: 14px;
    font-weight: 700;
}

.success-panel .call-us a {
    color: var(--gold-accent-dark);
    text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--primary-dark);
    color: #aab3bc;
    text-align: center;
    font-size: 0.8rem;
    padding: 18px 20px;
}

.site-footer a { color: var(--gold-accent); text-decoration: none; }

/* ---------- Masaüstü ---------- */

@media (min-width: 700px) {
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
    .form-card { padding: 36px 44px 40px; }
    .container { max-width: 720px; }
}
