/* KEP Başvuru Sistemi - Ana Stil Dosyası */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Public Layout */
.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.main {
    flex: 1;
    padding: 40px 0;
}

.public-footer {
    background: var(--text);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Type Selection */
.type-selection-section {
    margin-bottom: 60px;
}

.type-selection-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.type-cards.public-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.type-card-link {
    text-decoration: none;
    color: inherit;
}

.type-card.public-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.type-card.public-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.type-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.feature-list li {
    padding: 5px 0;
    color: var(--text-light);
}

/* Info Section */
.info-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
}

.info-section h2 {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    padding: 20px;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border-radius: 50px;
    border: 2px solid var(--border);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step.completed {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.step-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-label {
    font-weight: 500;
}

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h1 {
    margin-bottom: 5px;
}

.form-header p {
    opacity: 0.9;
}

/* Application Form */
.application-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.section-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 30px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Package Options */
.package-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.package-options.vertical {
    grid-template-columns: 1fr;
}

.package-option {
    display: block;
    cursor: pointer;
}

.package-option input {
    display: none;
}

.package-content {
    padding: 25px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.package-option input:checked + .package-content {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.package-content h4 {
    margin-bottom: 10px;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.save-badge {
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 10px;
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.radio-option:hover {
    background: var(--border);
}

.radio-option input {
    width: 18px;
    height: 18px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: var(--success);
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--info);
}

/* Verify Page */
.verify-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.verify-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.verify-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.verify-box h1 {
    margin-bottom: 15px;
}

.verify-desc {
    color: var(--text-light);
    margin-bottom: 30px;
}

.otp-input-group {
    margin-bottom: 25px;
}

.otp-input {
    width: 100%;
    max-width: 200px;
    padding: 20px;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
}

.verify-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.verify-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Success Page */
.success-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.success-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.success-box h1 {
    margin-bottom: 15px;
    color: var(--success);
}

.success-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.next-steps {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 30px;
    margin-bottom: 30px;
}

.next-steps h3 {
    margin-bottom: 20px;
    text-align: center;
}

.steps-list {
    list-style: none;
}

.steps-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.steps-list .step-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-box {
    background: var(--info);
    color: white;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.success-actions {
    margin-top: 20px;
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .verify-box,
    .success-box {
        padding: 30px 20px;
    }
}
