/* ==========================================================================
   HALKA ACIK ILETISIM FORMU  —  public/css/contact.css
   --------------------------------------------------------------------------
   Views/Contact/Index (AllowAnonymous, _LayoutLanding). Yalnizca .ct-*
   siniflari; panel tarafiyla ortak kurali YOKTUR.

   Not: bu kurallar 2026-09-07'ye kadar css/contact.css icinde panel
   taraftaki lead listesi kurallariyla ayni dosyadaydi; iki yuzey ayrildigi
   icin dosya da bolundu.
   Renkler landing.css'teki --lp-* paletinden gelir (acik + koyu tema). Panelin
   --aui-* token'lari halka acik yuzeyde YUKLENMEZ: 2026-09-14'e kadar bu dosya
   onlari okuyordu ve form alanlarinin cercevesi / Gonder dugmesinin zemini
   gorunmuyordu.
   ========================================================================== */


:root {
    --ct-bg: var(--lp-bg);
    --ct-surface: var(--lp-surface);
    --ct-text: var(--lp-text);
    --ct-muted: var(--lp-muted);
    --ct-border: var(--lp-border);
    --ct-primary: var(--lp-link);
    --ct-primary-dark: var(--lp-primary-2);
    --ct-success: var(--lp-primary);
    --ct-error: #dc2626;
    --ct-error-soft: rgba(220, 38, 38, 0.08);
    --ct-error-line: rgba(220, 38, 38, 0.28);
    --ct-radius: 12px;
}

.ct-section {
    padding: 60px 20px 80px 20px;
    background: linear-gradient(180deg, var(--lp-bg) 0%, var(--lp-surface) 100%);
    min-height: calc(100vh - 200px);
}

.ct-container {
    max-width: 720px;
    margin: 0 auto;
}

.ct-head {
    text-align: center;
    margin-bottom: 32px;
}

.ct-head__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: var(--lp-tint);
    color: var(--ct-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.ct-head h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--ct-text);
    line-height: 1.15;
}

.ct-head p {
    color: var(--ct-muted);
    font-size: 16px;
    margin: 0;
}

@media (max-width: 640px) {
    .ct-section { padding: 40px 16px 60px 16px; }
    .ct-head h1 { font-size: 28px; }
}

.ct-card {
    background: var(--lp-card);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 32px;
    box-shadow: var(--lp-shadow-md);
}

@media (max-width: 640px) {
    .ct-card { padding: 22px; }
}

/* ---------- Form ---------- */
.ct-field { margin-bottom: 18px; }

.ct-field label {
    display: block;
    font-weight: 600;
    color: var(--ct-text);
    margin-bottom: 6px;
    font-size: 13px;
}

.ct-field label .req {
    color: var(--ct-error);
    margin-left: 2px;
}

.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--ct-text);
    background: var(--lp-card);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ct-field input:focus,
.ct-field textarea:focus {
    outline: 0;
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px var(--lp-tint-strong);
}

.ct-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.ct-field__hint {
    color: var(--ct-muted);
    font-size: 12px;
    margin-top: 4px;
}

.ct-field__counter {
    text-align: right;
    color: var(--ct-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Honeypot — gizle (kullanıcı görmez, bot doldurur) */
.ct-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Buttons ---------- */
.ct-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.ct-btn--primary {
    background: var(--lp-grad);
    color: #fff;
}

.ct-btn--primary:hover {
    background: var(--ct-primary-dark);
    color: #fff;
}

.ct-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ct-btn--ghost {
    background: transparent;
    color: var(--ct-text);
    border-color: var(--ct-border);
}

.ct-btn--ghost:hover { background: var(--ct-surface); }

.ct-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ct-spin 0.7s linear infinite;
    display: none;
}

button.is-loading .ct-spinner { display: inline-block; }

@keyframes ct-spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.ct-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ct-alert--success {
    background: var(--lp-tint);
    color: var(--ct-text);
    border: 1px solid var(--lp-tint-strong);
}

.ct-alert--error {
    background: var(--ct-error-soft);
    color: var(--ct-error);
    border: 1px solid var(--ct-error-line);
}

.ct-alert i { margin-top: 2px; flex-shrink: 0; }

/* ---------- Validation errors ---------- */
.ct-error {
    color: var(--ct-error);
    font-size: 12px;
    margin-top: 4px;
}

/* ---------- Side info (opsiyonel iletişim bilgisi) ---------- */
.ct-aside {
    margin-top: 24px;
    padding: 18px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    color: var(--ct-muted);
    font-size: 13px;
    text-align: center;
}

.ct-aside a {
    color: var(--ct-primary);
    text-decoration: none;
    font-weight: 600;
}

.ct-aside a:hover { text-decoration: underline; }
