/* =============================================
   Bayi Kayıt Formu – Frontend CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.bayi-kayit-wrap,
.bayi-kayit-wrap *,
.bayi-kayit-wrap input,
.bayi-kayit-wrap select,
.bayi-kayit-wrap textarea,
.bayi-kayit-wrap button,
.bayi-kayit-wrap label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.bayi-kayit-wrap {
    max-width: 900px;
    margin: -30px auto 0;
    /* Üst boşluğu biraz çekti */
    padding: 0px;
}

/* ── Giriş yapılmış kart ───────────────────── */
.bayi-loggedin-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.bayi-loggedin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 56px 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.10);
}

.bayi-loggedin-icon {
    width: 76px;
    height: 76px;
    background: var(--theme-primary-color, var(--wd-primary-color, var(--primary-color, #222)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
}

.bayi-loggedin-icon svg {
    width: 34px;
    height: 34px;
}

.bayi-loggedin-card h3 {
    margin: 0 0 12px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--theme-primary-color, var(--wd-primary-color, var(--primary-color, #222)));
    line-height: 1.3;
}

.bayi-loggedin-card p {
    margin: 0 0 32px;
    font-size: 0.94em;
    color: #6b7280;
    line-height: 1.7;
    max-width: 320px;
}

.bayi-loggedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--theme-primary-color, var(--wd-primary-color, var(--primary-color, #222)));
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    transition: opacity 0.2s, transform 0.15s;
}

.bayi-loggedin-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

@media (max-width: 520px) {
    .bayi-loggedin-card {
        padding: 40px 24px;
    }

    .bayi-loggedin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Header ────────────────────────────────── */
.bayi-header {
    margin-bottom: 15px;
    /* 30'dan 15'e düşürüldü */
}

.bayi-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.bayi-header p {
    margin-bottom: 6px;
}

.bayi-giris-link {
    text-decoration: underline !important;
    font-weight: 600;
}

/* Checkbox içindeki linkler — açıkça görünsün */
.bayi-check-label a {
    color: var(--theme-primary-color, var(--wd-primary-color, var(--primary-color, #0073aa))) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.bayi-check-label a:hover {
    opacity: 0.75;
}

.bayi-bilgi-kutusu {
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.92em;
    line-height: 1.6;
    margin-top: 12px;
}

/* ── Notices ───────────────────────────────── */
.bayi-notice {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.bayi-notice ul {
    margin: 8px 0 0 20px;
}

.bayi-notice.bayi-error {
    background: #fdecea;
    border-left: 4px solid #e53935;
    color: #b71c1c;
}

.bayi-notice.bayi-success {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #1b5e20;
}

.bayi-notice.bayi-info {
    background: #e3f2fd;
    border-left: 4px solid #1e88e5;
    color: #0d47a1;
}

/* ── Form sections ─────────────────────────── */
.bayi-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 15px;
    /* 24'ten 15'e düşürüldü */
}

.bayi-section-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-primary-color, var(--wd-primary-color, #0073aa));
    font-size: 1.1em;
    color: var(--theme-primary-color, var(--wd-primary-color, #0073aa));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Grid ──────────────────────────────────── */
.bayi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .bayi-grid {
        grid-template-columns: 1fr;
    }
}

.bayi-field--full {
    grid-column: 1 / -1;
}

/* ── Fields ────────────────────────────────── */
.bayi-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.88em;
    color: #333;
}

.bayi-field input,
.bayi-field select,
.bayi-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fafafa;
}

.bayi-field input:focus,
.bayi-field select:focus,
.bayi-field textarea:focus {
    border-color: var(--theme-primary-color, var(--wd-primary-color, #0073aa));
    outline: none;
    background: #fff;
}

.bayi-field small {
    display: block;
    margin-top: 4px;
    font-size: 0.8em;
    color: #888;
}

.req {
    color: #e00;
    margin-left: 2px;
}

/* ── Error Styles ──────────────────────────── */
.bayi-field--error input,
.bayi-field--error select,
.bayi-field--error textarea {
    border-color: #e53935 !important;
    background-color: #fff8f8 !important;
}

.bayi-field--error label {
    color: #e53935 !important;
}

.bayi-check--error {
    color: #e53935 !important;
    padding: 10px;
    border: 1px solid #e53935;
    border-radius: 5px;
    background: #fff8f8;
}

.bayi-error-msg {
    display: block;
    color: #e53935;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Checkboxes ────────────────────────────── */
.bayi-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.92em;
}

.bayi-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Submit ────────────────────────────────── */
.bayi-submit-wrap {
    text-align: center;
    margin-top: 10px;
}

.bayi-submit-btn {
    background: var(--theme-primary-color, var(--wd-primary-color, #0073aa));
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 1.05em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.1s;
}

.bayi-submit-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.bayi-submit-btn:active {
    transform: translateY(0);
}

/* ── WooCommerce Giriş Sayfası – Bayi Kayıt Linki ── */
.bayi-kayit-link-wrap {
    text-align: right;
    margin-bottom: 12px;
}

.bayi-kayit-link {
    display: inline-block;
    color: #cc0000 !important;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none !important;
    border: 1.5px solid #cc0000;
    border-radius: 4px;
    padding: 4px 14px;
    transition: background 0.18s, color 0.18s;
}

.bayi-kayit-link:hover {
    background: #cc0000;
    color: #fff !important;
    text-decoration: none !important;
}