:root {
    --primary-color: #0056b3;
    --secondary-color: #f1f5f9;
    --surface-color: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --hover-color: #e6effa;
    --success-color: #10b981;
    --error-color: #ef4444;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    margin: 0;
}

/* SECTION TOGGLING */
.hidden-section {
    display: none !important;
}

/* LANDING PAGE STYLES */
.landing-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 20px;
    text-align: center;
}

.landing-content {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    animation: fadeIn 0.8s ease;
}

.landing-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.landing-content h1 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 700;
}

.landing-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.landing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.landing-features li {
    font-weight: 500;
    color: #334155;
}

.cta-btn {
    padding: 16px 32px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.cta-btn:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.cta-btn.secondary:hover {
    background-color: var(--hover-color);
}

/* WIZARD CONTAINER */
#wizardSection {
    padding: 40px 20px;
    min-height: 100vh;
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* SUCCESS PAGE */
#successSection {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.success-content {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.success-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* DDOS UI (New) */
.ddos-container {
    max-width: 100%;
    margin: auto;
}

.ddos-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #334155;
}

.ddos-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.ddos-card {
    position: relative;
    /* Removed flex properties that conflicted */
}

.ddos-card input {
    display: none;
}

.ddos-card label {
    display: block;
    height: 140px;
    padding: 18px;
    border: 2px solid #dce1e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    /* Ensure alignment */
}

/* Center ONLY the 'None' option */
#none+label {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ddos-card label:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.ddos-card input:checked+label {
    border-color: #2563eb;
    background: #f0f6ff;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.plan-level {
    font-size: 13px;
    color: #2563eb;
    margin-bottom: 10px;
    font-weight: 600;
}

.plan-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Önerilen */
.ddos-card.recommended label {
    border-color: #f59e0b;
}

.ddos-card.recommended::before {
    content: "Önerilen";
    position: absolute;
    top: -10px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 5;
}

/* DDoS card overflow fix (istenmiyor kutusu dahil) */
.ddos-card { min-width: 0; }

.ddos-card label {
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-desc {
  margin-top: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* submit status */
.submit-status { margin-top: 10px; font-size: 13px; color: #475569; }
.submit-status.error { color: var(--error-color); }
.submit-status.success { color: #16a34a; }

/* Responsiveness for DDoS Grid */
@media (max-width: 900px) {
    .ddos-options {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }
}

@media (max-width: 600px) {
    .ddos-options {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .ddos-card label {
        height: auto;
        /* Allow auto height on mobile */
    }
}

/* CAPTCHA STYLES */
.captcha-container {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-label {
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.captcha-input {
    width: 100px !important;
    padding: 8px;
    font-size: 1rem;
    text-align: center;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* ... PREVIOUS GENERAL STYLES PRESERVED ... */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-color);
    padding: 0 10px;
    opacity: 0.6;
    transition: all 0.3s;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header-step {
    margin-bottom: 30px;
    text-align: center;
}

.form-header-step h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-header-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-box {
    background-color: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #334155;
}

.required {
    color: var(--error-color);
    margin-left: 3px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
}

.section-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-width: 0;
}

.input-group.full-width {
    margin-bottom: 20px;
    width: 100%;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

input.error,
select.error,
textarea.error {
    border-color: var(--error-color);
}

textarea.scrollable-textarea {
    resize: vertical;
    max-height: 400px;
}

.checkbox-group-container {
    margin-bottom: 20px;
}

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
}

@media(min-width: 600px) {
    .checkbox-item {
        width: auto;
        margin-right: 10px;
    }
}

.checkbox-item input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    flex-shrink: 0;
}

.group-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.info-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.tooltip {
    position: absolute;
    background-color: #1e293b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 280px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    line-height: 1.4;
}

.tooltip.hidden {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.nav-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.nav-btn.primary:hover {
    background-color: #004494;
}

.nav-btn.secondary {
    background-color: #e2e8f0;
    color: #475569;
}

.nav-btn.secondary:hover {
    background-color: #cbd5e1;
}

.nav-btn.secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.success {
    background-color: var(--success-color);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    body {
        padding: 0;
    }

    .step-indicator {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 20px;
        padding-bottom: 10px;
    }

    .step-indicator::before {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}
