﻿:root {
    --brand: #8e44ad;
    --accent: #4aa3df;
    --bg: #fbfbfd;
    --card-bg: #ffffff;
    --border-color: #e6dff1;
    --txt: #2b2b2b;
    --muted: #7a7a7a;
    --font: "Segoe UI", Poppins, Roboto, Arial, sans-serif;
}

/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(circle at top right, rgba(74,163,223,.10), transparent 45%), radial-gradient(circle at bottom left, rgba(142,68,173,.10), transparent 45%), var(--bg);
    color: var(--txt);
}

/* ================= FIELDSET ================= */
fieldset {
    background: linear-gradient(180deg, #fff, #fcfbff);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 32px rgba(142,68,173,.12);
}

/* ================= LEGEND ================= */
legend {
    font-weight: 700;
    margin-bottom: 14px;
    color: #4b2c5e;
}

    legend::before {
        content: "|";
        color: var(--brand);
        margin-right: 8px;
    }

/* ================= TABLE ================= */
.AlseinTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: .95rem;
}

    .AlseinTable td {
        background: var(--card-bg);
        padding: 12px 14px;
        border-radius: 12px;
        vertical-align: middle;
    }

        /* ---- SÜTUNLAR ---- */

        /* 1: * */
        .AlseinTable td:nth-child(1) {
            width: 32px;
            text-align: center;
            font-weight: 800;
            color: var(--brand);
            padding-right: 6px;
        }

        /* 2: Label */
        .AlseinTable td:nth-child(2) {
            width: 240px;
            font-weight: 500;
            color: var(--muted);
            padding-right: 48px; /* 🔥 2–3 ARASI BOŞLUK */
        }

        /* 3: Input */
        .AlseinTable td:nth-child(3) {
            width: auto;
        }

    /* ================= FORM CONTROLS ================= */
    .form-control,
    .AlseinTable input,
    .AlseinTable select,
    .AlseinTable label {
        width: 100%;
        max-width: 520px; /* input çok uzamasın */
        box-sizing: border-box;
        padding: 11px 14px;
        font-size: .95rem;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.15);
        background: #fbfbfe;
    }

/* Label gibi görünen ücret alanları */
label.form-control {
    background: #f1f1f8;
    border-style: dashed;
    font-weight: 600;
    color: var(--brand);
}

/* Focus */
.form-control:focus,
input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(74,163,223,.18);
    outline: none;
}

/* ================= BUTTON ================= */
.my-btn {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 700;
}

/* ================= MOBILE ================= */
@media (max-width: 760px) {
    .AlseinTable td {
        display: block;
        width: 100% !important;
    }

        .AlseinTable td:nth-child(1) {
            display: none;
        }

        .AlseinTable td:nth-child(2) {
            padding-right: 0;
            margin-bottom: 6px;
        }

    .form-control,
    .AlseinTable input,
    .AlseinTable select,
    .AlseinTable label {
        max-width: 100%;
    }
}

/* ================= ACCESSIBILITY ================= */
:focus-visible {
    outline: 3px solid rgba(74,163,223,.35);
    outline-offset: 2px;
}
