/* ============================================================
   Online Ön Değerlendirme Formu — /online-degerlendirme/
   Class prefix: .drd-od-
   Hero bizim render_hero() (main.css), bu dosya sadece form.
   ============================================================ */

.drd-od-form,
.drd-od-form * {
    box-sizing: border-box;
}

/* ========== FORM ========== */
.drd-od-form {
    max-width: 720px;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(45, 37, 69, 0.08);
    color: #1a1530;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.55;
    overflow: hidden;
}
.drd-od-form-body {
    padding: 28px;
}
.drd-od-form h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2D2545;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* Progress steps */
.drd-od-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    position: relative;
}
.drd-od-progress::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #e6e0f0;
    z-index: 0;
}
.drd-od-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #7d7596;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drd-od-progress-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e6e0f0;
    color: #7d7596;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
}
.drd-od-progress-step.active .drd-od-progress-num {
    background: #9C6BFF;
    border-color: #9C6BFF;
    color: #fff;
}
.drd-od-progress-step.done .drd-od-progress-num {
    background: #2D2545;
    border-color: #2D2545;
    color: #fff;
}
.drd-od-progress-step.active { color: #2D2545; }

/* Step containers */
.drd-od-step { display: none; }
.drd-od-step.active { display: block; }

.drd-od-section-label {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7d7596;
    font-weight: 500;
    margin: 0 0 12px;
}
.drd-od-field { margin: 0 0 16px; }
.drd-od-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1530;
    margin: 0 0 6px;
}
.drd-od-required { color: #9C6BFF; font-weight: 500; }

.drd-od-form input[type="text"],
.drd-od-form input[type="tel"],
.drd-od-form input[type="number"],
.drd-od-form input[type="email"],
.drd-od-form select,
.drd-od-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e6e0f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #1a1530;
    background: #fafafe;
    transition: all 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.drd-od-form input[type="text"]:focus,
.drd-od-form input[type="tel"]:focus,
.drd-od-form input[type="number"]:focus,
.drd-od-form textarea:focus {
    outline: none;
    border-color: #9C6BFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(156, 107, 255, 0.1);
}
.drd-od-form input.drd-od-input-error {
    border-color: #ef4444;
    background: #fef2f2;
}
.drd-od-form input.drd-od-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.drd-od-form input.drd-od-input-valid {
    border-color: #10b981;
}
.drd-od-field-error {
    font-size: 11px;
    color: #dc2626;
    font-weight: 500;
    margin: 6px 0 0;
    display: none;
}
.drd-od-field-error.show { display: block; }
.drd-od-form textarea { resize: vertical; min-height: 80px; }

.drd-od-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drd-od-row.three { grid-template-columns: 2fr 2fr 1fr; }

/* Kategori kartları */
.drd-od-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.drd-od-cat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
    border: 1.5px solid #e6e0f0;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    user-select: none;
    position: relative;
    min-height: 108px;
}
.drd-od-cat:hover {
    border-color: #C7A9FE;
    background: #fafafe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 37, 69, 0.06);
}
.drd-od-cat input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.drd-od-cat::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border: 1.5px solid #e6e0f0;
    border-radius: 50%;
    background: #fff;
    transition: all 0.15s;
}
.drd-od-cat:has(input:checked) {
    border-color: #9C6BFF;
    background: #FAF7FF;
    box-shadow: 0 4px 16px rgba(156, 107, 255, 0.12);
}
.drd-od-cat:has(input:checked)::after {
    background: #9C6BFF;
    border-color: #9C6BFF;
}
.drd-od-cat:has(input:checked)::before {
    content: '';
    position: absolute;
    top: 17px;
    right: 20px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 1;
}
.drd-od-cat-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.drd-od-cat-text {
    flex: 1;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 500;
    color: #2D2545;
    padding-right: 30px;
}
.drd-od-cat-text > span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 300;
    color: #7d7596;
}

/* Adım 3 — fotoğraflar */
.drd-od-step-intro {
    font-size: 13px;
    color: #7d7596;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 16px;
}
.drd-od-step-intro strong { color: #2D2545; font-weight: 500; }

.drd-od-warn {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    color: #78350f;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 18px;
}
.drd-od-warn strong { color: #78350f; font-weight: 600; }

.drd-od-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.drd-od-photo-slot {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e0f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
    min-width: 0;
}
.drd-od-photo-slot.uploaded {
    border-color: #10b981;
    background: #f0fdf4;
}
.drd-od-photo-example {
    position: relative;
    aspect-ratio: 367 / 247;
    background: #FAFAFE;
    overflow: hidden;
    border-bottom: 1px solid #e6e0f0;
}
.drd-od-photo-example img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.drd-od-photo-num {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(45, 37, 69, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.drd-od-photo-slot.uploaded .drd-od-photo-num { background: #10b981; font-size: 0; }
.drd-od-photo-slot.uploaded .drd-od-photo-num::after {
    content: '✓';
    position: absolute;
    font-size: 13px;
    font-weight: 700;
}
.drd-od-photo-preview {
    position: absolute;
    inset: 0;
    background: #000;
    display: none;
}
.drd-od-photo-slot.uploaded .drd-od-photo-preview { display: block; }
.drd-od-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.drd-od-photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.drd-od-photo-slot.uploaded .drd-od-photo-remove { display: flex; }
.drd-od-photo-upload {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drd-od-photo-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1530;
    line-height: 1.3;
}
.drd-od-photo-desc {
    font-size: 11px;
    color: #7d7596;
    font-weight: 300;
    line-height: 1.4;
    flex: 1;
}
.drd-od-photo-desc strong { color: #2D2545; font-weight: 600; }
.drd-od-photo-input { display: none; }
.drd-od-photo-btn {
    background: #F4EFFF;
    color: #2D2545;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 6px;
}
.drd-od-photo-btn:hover { background: #E8DBFF; }
.drd-od-photo-slot.uploaded .drd-od-photo-btn {
    background: #10b981;
    color: #fff;
}
.drd-od-photo-slot.uploaded .drd-od-photo-btn:hover { background: #059669; }

/* Röntgen drag-drop */
.drd-od-files {
    border: 2px dashed #C7A9FE;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    background: #FAFAFE;
    cursor: pointer;
    transition: all 0.15s;
    display: block;
}
.drd-od-files:hover,
.drd-od-files.dragover {
    background: #F4EFFF;
    border-color: #9C6BFF;
}
.drd-od-files-icon { font-size: 32px; margin: 0 0 8px; }
.drd-od-files-text {
    font-size: 14px;
    color: #1a1530;
    font-weight: 500;
    margin: 0 0 4px;
}
.drd-od-files-hint {
    font-size: 12px;
    color: #7d7596;
    font-weight: 300;
    margin: 0;
}
.drd-od-files input[type="file"] { display: none; }

.drd-od-wa-alt {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin: 18px 0 0;
    border-left: 3px solid #10b981;
}
.drd-od-wa-alt a {
    color: #047857;
    font-weight: 500;
    text-decoration: underline;
}
.drd-od-wa-alt a:hover { color: #065f46; }

.drd-od-divider {
    height: 1px;
    background: #e6e0f0;
    margin: 32px 0 24px;
    border: none;
}

.drd-od-file-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drd-od-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F4EFFF;
    border-radius: 8px;
    font-size: 12px;
}
.drd-od-file-item-name {
    flex: 1;
    color: #1a1530;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drd-od-file-item-size {
    color: #7d7596;
    font-weight: 300;
    flex-shrink: 0;
}
.drd-od-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.drd-od-file-remove:hover { color: #dc2626; }

/* OTP */
.drd-od-otp-info {
    background: #F4EFFF;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #2D2545;
    margin: 0 0 14px;
    line-height: 1.6;
}
.drd-od-otp-info strong { font-weight: 600; color: #2D2545; }
.drd-od-otp-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.drd-od-otp-resend {
    text-align: center;
    font-size: 13px;
    color: #7d7596;
    margin: 12px 0 0;
}
.drd-od-otp-resend button {
    background: none;
    border: none;
    color: #9C6BFF;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    padding: 0;
}
.drd-od-otp-resend button:disabled {
    color: #7d7596;
    cursor: not-allowed;
    text-decoration: none;
}

/* KVKK */
.drd-od-kvkk {
    background: #FAFAFE;
    border: 1px solid #e6e0f0;
    border-radius: 8px;
    padding: 14px;
    margin: 18px 0 0;
    font-size: 12px;
    color: #7d7596;
    line-height: 1.6;
}
.drd-od-kvkk label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #1a1530;
    font-weight: 400;
    font-size: 13px;
}
.drd-od-kvkk input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #C7A9FE;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    background: #fff;
}
.drd-od-kvkk input[type="checkbox"]:checked {
    background: #9C6BFF;
    border-color: #9C6BFF;
}
.drd-od-kvkk input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Aksiyonlar */
.drd-od-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 24px 0 0;
}
.drd-od-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.drd-od-btn-primary {
    background: #9C6BFF;
    color: #fff;
}
.drd-od-btn-primary:hover:not(:disabled) { background: #8757e8; }
.drd-od-btn-primary:disabled {
    background: #C7A9FE;
    cursor: not-allowed;
}
.drd-od-btn-secondary {
    background: #fff;
    color: #2D2545;
    border: 1px solid #e6e0f0;
}
.drd-od-btn-secondary:hover:not(:disabled) {
    background: #F4EFFF;
    border-color: #C7A9FE;
}

.drd-od-error {
    background: #FEF2F2;
    color: #991B1B;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 0 14px;
    font-weight: 500;
    border-left: 3px solid #ef4444;
}

/* Başarı ekranı */
.drd-od-success {
    text-align: center;
    padding: 32px 16px;
}
.drd-od-success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #fff;
}
.drd-od-success-title {
    font-size: 22px;
    font-weight: 600;
    color: #2D2545;
    margin: 0 0 8px;
}
.drd-od-success-text {
    font-size: 14px;
    color: #7d7596;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 18px;
}
.drd-od-success-ref {
    display: inline-block;
    background: #F4EFFF;
    color: #2D2545;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
}
.drd-od-success-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.drd-od-success-cta:hover {
    background: #1fb955;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 850px) and (min-width: 601px) {
    .drd-od-hero-content { gap: 24px; }
    .drd-od-hero-title { font-size: 28px; }
    .drd-od-hero-subtitle { font-size: 14px; }
}

@media (max-width: 600px) {
    .drd-od-form { margin: 20px 12px; }
    .drd-od-form-body { padding: 20px 18px; }
    /* iOS Safari otomatik zoom önle - input font 16px olmalı */
    .drd-od-form input[type="text"],
    .drd-od-form input[type="tel"],
    .drd-od-form input[type="number"],
    .drd-od-form input[type="email"],
    .drd-od-form select,
    .drd-od-form textarea { font-size: 16px; }
    .drd-od-hero { padding: 28px 20px 24px; }
    .drd-od-hero-content {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .drd-od-hero-right { display: none; }
    .drd-od-hero-title { font-size: 24px; }
    .drd-od-hero-subtitle { font-size: 14px; margin: 0; }
    .drd-od-howit { padding: 18px; }
    .drd-od-howit-arrow { display: none; }
    .drd-od-howit-steps { gap: 8px; }
    .drd-od-howit-num { width: 28px; height: 28px; font-size: 12px; }
    .drd-od-howit-label { font-size: 10px; }
    .drd-od-form h2 { font-size: 20px; }
    .drd-od-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .drd-od-cat { padding: 14px 12px; min-height: 96px; }
    .drd-od-cat-icon { font-size: 24px; }
    .drd-od-cat-text { font-size: 13px; padding-right: 24px; }
    .drd-od-cat-text > span { font-size: 11px; }
    .drd-od-cat::after { width: 18px; height: 18px; top: 10px; right: 10px; }
    .drd-od-cat:has(input:checked)::before { top: 14px; right: 17px; }
    .drd-od-row,
    .drd-od-row.three { grid-template-columns: 1fr; }
    .drd-od-progress-step { font-size: 0; }
    .drd-od-progress-step.active { font-size: 11px; }
    .drd-od-photos { grid-template-columns: 1fr; gap: 12px; }
}
