/* Anket Uygulaması - Survey Application Styles */
/* Türk Telekom Tema */

:root {
    --primary: #00A3E0;
    --primary-dark: #0082B4;
    --primary-light: #E6F7FD;
    --secondary: #004B87;
    --accent: #00A3E0;
    --success: #27AE60;
    --danger: #00A3E0;
    --warning: #00A3E0;
    --text: #1A1A1A;
    --text-muted: #666666;
    --border: #E0E0E0;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --light-gray: #F0F0F0;
    --shadow: 0 2px 8px rgba(0,163,224,.08), 0 1px 3px rgba(0,0,0,.04);
    --shadow-md: 0 8px 20px rgba(0,163,224,.18), 0 4px 10px rgba(0,163,224,.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #FFFFFF 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────── */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Header ─────────────────────────────────────────── */
.survey-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #00A3E0 0%, #0082B4 100%);
    border-radius: var(--radius);
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 3px solid #00A3E0;
}

.survey-header .logo-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.survey-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.survey-header p {
    color: rgba(255,255,255,.95);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* ── Progress bar ───────────────────────────────────── */
.progress-wrap {
    margin-bottom: 40px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid #00A3E0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: #00A3E0;
    margin-bottom: 12px;
}

.progress-bar-outer {
    height: 12px;
    background: #E8E8E8;
    border-radius: 99px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #00A3E0, #0082B4);
    border-radius: 99px;
    transition: width .7s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0,163,224,.4);
}

/* ── Cards ──────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 2px solid #E8E8E8;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    margin-bottom: 28px;
    transition: all .3s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0,163,224,.12);
    border-color: #00A3E0;
    transform: translateY(-2px);
}

.card:last-of-type {
    margin-bottom: 0;
}

.question-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: #00A3E0;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.4;
}

.required-star {
    color: #00A3E0;
    margin-left: 4px;
    font-weight: 900;
}

/* ── Form Controls ──────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #D0D0D0;
    border-radius: var(--radius);
    font-size: 0.96rem;
    color: var(--text);
    background: var(--white);
    transition: all .3s ease;
    outline: none;
    appearance: none;
    font-weight: 500;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: #00A3E0;
    box-shadow: 0 0 0 4px rgba(0,163,224,.15);
    background: #F0FBFE;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300A3E0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ── Radio / Checkbox Options ───────────────────────── */
.options-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

.option-item {
    flex: 1 1 20%;
    max-width: 100px;
}

.option-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 8px;
    border: 2px solid #D0D0D0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s ease;
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--white);
    width: 100%;
    min-height: 60px;
}

.option-item label:hover {
    border-color: #00A3E0;
    background: #E6F7FD;
    box-shadow: 0 2px 8px rgba(0,163,224,.1);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    display: none;
    width: 22px;
    height: 22px;
    accent-color: #00A3E0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all .2s ease;
}

.option-item input[type="radio"]:hover,
.option-item input[type="checkbox"]:hover {
    transform: scale(1.15);
}

.option-item input[type="radio"]:checked + span,
.option-item input[type="checkbox"]:checked + span {
    color: #00A3E0;
    font-weight: 800;
}

.option-item:has(input:checked) label {
    border-color: #00A3E0;
    background: #E6F7FD;
    box-shadow: 0 4px 12px rgba(0,163,224,.15);
    transform: scale(1.1);
}

/* ── Section Headers ────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid #00A3E0;
}

.section-header .section-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: #00A3E0;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0;
}

.section-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 6px 0 0;
    font-weight: 500;
}

/* ── Form Grid ──────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

/* ── KVKK Box ───────────────────────────────────────── */
.kvkk-box {
    background: linear-gradient(135deg, #E6F7FD 0%, #D4F0FA 100%);
    border: 3px solid #00A3E0;
    border-radius: var(--radius);
    padding: 28px 32px;
}

.kvkk-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-height: 160px;
    overflow-y: auto;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius);
    padding: 16px;
    background: var(--white);
    margin-bottom: 18px;
}

.kvkk-consent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.kvkk-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #00A3E0;
    cursor: pointer;
}

.kvkk-consent span {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
}

/* ── Alert / Error ──────────────────────────────────── */
.alert {
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-size: 0.98rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 3px solid;
}

.alert-danger {
    background: #E6F7FD;
    border-color: #00A3E0;
    color: #0082B4;
}

.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ── Submit Button ──────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #00A3E0 0%, #0082B4 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0082B4 0%, #006699 100%);
    box-shadow: 0 14px 28px rgba(0,163,224,.3);
    transform: translateY(-3px);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,163,224,.2);
}

.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* ── Thank-you page ─────────────────────────────────── */
.thankyou-wrap {
    text-align: center;
    padding: 60px 20px;
}

.thankyou-wrap .check-icon {
    font-size: 5.5rem;
    margin-bottom: 24px;
    animation: pop .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
    0%   { transform: scale(.3); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.thankyou-wrap h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.thankyou-wrap p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 8px;
    font-size: 1.05rem;
}

/* ── Error field highlight ──────────────────────────── */
.form-control.is-invalid {
    border-color: #00A3E0;
    background: #E6F7FD;
}

.field-error {
    font-size: 0.88rem;
    color: #00A3E0;
    margin-top: 7px;
    font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────── */
.survey-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 2px solid #E0E0E0;
    color: var(--text-muted);
    font-size: 0.87rem;
    font-weight: 500;
}

/* ── Responsive Design ──────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px 60px;
    }

    .survey-header {
        margin-bottom: 36px;
        padding: 30px 16px;
    }

    .survey-header h1 {
        font-size: 1.6rem;
    }

    .survey-header .logo-icon {
        font-size: 2.5rem;
    }

    .card {
        padding: 24px;
        margin-bottom: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 0.95rem;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 14px 50px;
    }

    .survey-header {
        margin-bottom: 28px;
        padding: 20px 12px;
        border-radius: 8px;
    }

    .survey-header h1 {
        font-size: 1.4rem;
    }

    .survey-header p {
        font-size: 0.9rem;
    }

    .card {
        padding: 20px;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .option-item label {
        padding: 12px 14px;
        gap: 10px;
    }

    .progress-wrap {
        padding: 16px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }
}
