/*------------------------------------------------------------------
  Enterprise Premium Design System
  Güvenlik Taraması — guvenliktaramasi.com
-------------------------------------------------------------------*/

:root {
    /* Page */
    --bg-page: #F7F9FC;
    --bg-card: #FFFFFF;

    /* Text */
    --text-primary: #0B1F3A;
    --text-secondary: #5B6B82;
    --text-muted: #64748B;
    --text-placeholder: #94A3B8;

    /* Borders */
    --border-soft: #E6ECF5;
    --border-strong: #D6DFEB;

    /* Accent */
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-tint: #EFF6FF;
    --accent-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

    /* Status */
    --success: #16A34A;
    --success-bg: #F0FDF4;
    --success-border: #BBF7D0;
    --warning: #D97706;
    --error: #DC2626;
    --error-bg: #FEF2F2;
    --error-text: #991B1B;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-button: 0 10px 20px rgba(37, 99, 235, 0.18);
    --focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ================================================================
   1. RESET & BASE
   ================================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover {
    color: var(--accent-hover);
}

/* ================================================================
   2. LAYOUT
   ================================================================ */

.page-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    min-height: 100vh;
}

/* Background decorative blurs */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.bg-blur-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    background: rgba(37, 99, 235, 0.04);
    filter: blur(100px);
}
.bg-blur-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: rgba(11, 31, 58, 0.03);
    filter: blur(80px);
}

/* ================================================================
   3. LEFT PANEL — INFO
   ================================================================ */

.info-panel {
    position: sticky;
    top: 80px;
    z-index: 1;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}
.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-tint);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-icon i {
    font-size: 22px;
    color: var(--accent);
}
.brand-name {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}
.brand-name strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Info Text */
.info-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.info-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Trust Items */
.trust-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.trust-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent-tint);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-icon i {
    font-size: 18px;
    color: var(--accent);
}
.trust-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.trust-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.badge-item i {
    font-size: 14px;
    color: var(--accent);
}

/* ================================================================
   4. RIGHT PANEL — FORM CARD
   ================================================================ */

.form-panel {
    z-index: 1;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-bar {
    margin-bottom: 32px;
}
.progress-track {
    width: 100%;
    height: 4px;
    background: var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 16.66%;
}
.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: right;
}

/* ================================================================
   5. FORM STEPS
   ================================================================ */

.form-steps {
    flex: 1;
    position: relative;
}

.step {
    display: none;
    animation: stepIn 0.35s ease forwards;
}
.step.step-active {
    display: block;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Labels & Hints */
.form-label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.form-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Inputs */
.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.25s ease;
}
.form-input::placeholder {
    color: var(--text-placeholder);
}
.form-input:hover {
    border-color: #C7D2E3;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}
.form-input.input-error {
    border-color: var(--error);
    background: var(--error-bg);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

/* Field Errors */
.field-error {
    display: none;
    font-size: 13px;
    color: var(--error-text);
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}
.field-error i {
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Skip Link */
.skip-link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}
.skip-link:hover {
    color: var(--accent);
}

/* ================================================================
   6. SCAN TYPE OPTIONS
   ================================================================ */

.scan-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scan-option input[type="radio"],
.scan-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.scan-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-card);
}
.scan-option-card:hover {
    border-color: var(--accent);
    background: var(--accent-tint);
}
.scan-option input[type="radio"]:checked + .scan-option-card,
.scan-option input[type="checkbox"]:checked + .scan-option-card {
    border-color: var(--accent);
    background: var(--accent-tint);
    box-shadow: var(--focus-ring);
}
.scan-option-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-tint);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scan-option input[type="radio"]:checked + .scan-option-card .scan-option-icon,
.scan-option input[type="checkbox"]:checked + .scan-option-card .scan-option-icon {
    background: var(--accent);
}
.scan-option input[type="radio"]:checked + .scan-option-card .scan-option-icon i,
.scan-option input[type="checkbox"]:checked + .scan-option-card .scan-option-icon i {
    color: #FFF;
}
.scan-option-icon i {
    font-size: 20px;
    color: var(--accent);
}
.scan-option-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.scan-option-content span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================================
   7. SUMMARY / CONFIRM STEP
   ================================================================ */

.summary-list {
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 110px;
}
.summary-value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.summary-edit {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-left: 12px;
    white-space: nowrap;
}
.summary-edit:hover {
    color: var(--accent-hover);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 16px;
    background: #FAFBFD;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}
.checkbox-label .checkmark {
    display: none;
}
.checkbox-label a {
    font-weight: 600;
}

/* ================================================================
   8. BUTTONS
   ================================================================ */

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}

.btn {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 28px;
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #FFF;
    margin-left: auto;
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-button);
}

.btn-submit {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    color: #FFF;
    margin-left: auto;
}
.btn-submit:hover {
    background: #16A34A;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
}

.btn-ghost {
    background: none;
    color: var(--text-muted);
    padding: 0 16px;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: #F1F5F9;
}
.btn-ghost.hidden {
    visibility: hidden;
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   9. SUCCESS SCREEN
   ================================================================ */

.success-screen {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.success-screen.active {
    display: block;
    animation: stepIn 0.5s ease forwards;
}
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon i {
    font-size: 32px;
    color: var(--success);
}
.success-screen h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.success-screen p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.success-screen strong {
    color: var(--accent);
    font-weight: 600;
}
.eta-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--accent-tint);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.eta-badge strong {
    color: var(--accent);
}
.success-note {
    margin-top: 16px;
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

/* ================================================================
   10. SECURITY NOTE
   ================================================================ */

.security-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.security-note i {
    font-size: 14px;
    color: var(--accent);
}

/* ================================================================
   11. RESPONSIVE
   ================================================================ */

/* Tablet */
@media only screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
        max-width: 640px;
    }
    .info-panel {
        position: static;
    }
    .info-title {
        font-size: 26px;
    }
}

/* Mobile */
@media only screen and (max-width: 640px) {
    .container {
        padding: 24px 16px;
        gap: 24px;
    }

    .info-title {
        font-size: 22px;
    }
    .info-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .trust-items {
        gap: 14px;
        margin-bottom: 24px;
    }
    .trust-badges {
        gap: 8px;
    }
    .badge-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    .form-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
        min-height: 400px;
    }

    .form-label {
        font-size: 18px;
    }
    .form-hint {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .form-input {
        height: 48px;
        font-size: 14px;
    }

    .scan-option-card {
        padding: 14px 16px;
    }
    .scan-option-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .scan-option-content strong {
        font-size: 14px;
    }
    .scan-option-content span {
        font-size: 12px;
    }

    .summary-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px 0;
    }
    .summary-label {
        min-width: 100%;
        font-size: 11px;
    }
    .summary-value {
        font-size: 14px;
    }

    .btn {
        height: 48px;
        font-size: 14px;
        padding: 0 20px;
    }
    .form-nav {
        margin-top: 24px;
    }

    .brand {
        margin-bottom: 24px;
    }
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    .brand-name {
        font-size: 18px;
    }
}

/* Very small screens */
@media only screen and (max-width: 380px) {
    .container {
        padding: 16px 12px;
    }
    .form-card {
        padding: 20px 16px;
    }
    .form-label {
        font-size: 16px;
    }
    .btn {
        padding: 0 14px;
        font-size: 13px;
    }
}
