/* Kapadokya Üniversitesi Kayıt Sistemi CSS */
/* Renk Paleti:
   - Ana Navy: #002855 (PANTONE 295 C)
   - Mavi: #0072CE (PANTONE 285 C) 
   - Turkuaz: #00A1AA (PANTONE 320 C)
   - Turuncu: #F2A900 (PANTONE 130 C)
   - Mor: #513C96 (PANTONE 513 C)
   - Kırmızı: #CB333B (PANTONE 1797 C)
   - Gri: #83869B (PANTONE Cool Gray 11 C)
   - Açık Gri: #D6D2C4 (PANTONE 7527 C)
*/

:root {
    --primary-navy: #002855;
    --primary-blue: #0072CE;
    --primary-teal: #00A1AA;
    --accent-orange: #F2A900;
    --accent-purple: #513C96;
    --accent-red: #CB333B;
    --neutral-gray: #83869B;
    --light-gray: #D6D2C4;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --border-light: #e8ecef;
}

/* Base Styles */
body {
    font-family: 'DIN Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    line-height: 1.6;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.kayit-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.kayit-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.header-logo {
    margin-right: 2rem;
}

.university-logo {
    height: 80px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-title {
    font-family: 'DIN Pro Condensed', 'DIN Pro', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-title i {
    color: var(--accent-orange);
    text-shadow: 0 2px 8px rgba(242, 169, 0, 0.3);
}

.header-subtitle {
    font-family: 'DIN Pro', sans-serif;
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Wizard Progress Bar */
.wizard-progress {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 40, 85, 0.1);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    border-radius: 2px;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 120px;
    transition: all 0.3s ease;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: var(--neutral-gray);
    transition: all 0.4s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.step.active .step-number {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 114, 206, 0.3);
}

.step.active .step-number::before {
    width: 100%;
    height: 100%;
}

.step.completed .step-number {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
}

.step.completed .step-number::after {
    content: '\2713';
    font-family: inherit;
    font-weight: 900;
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.95rem;
    color: var(--neutral-gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-blue);
    font-weight: 600;
    transform: scale(1.05);
}

.step.completed .step-label {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Wizard Content */
.wizard-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 40, 85, 0.1);
    border: 1px solid var(--border-light);
    margin-bottom: 120px;
    position: relative;
}

.wizard-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy) 0%, var(--primary-blue) 50%, var(--primary-teal) 100%);
    border-radius: 15px 15px 0 0;
}

/* Step Content */
.step-content {
    max-width: 900px;
    margin: 0 auto;
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.step-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-orange);
}

.step-header h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.step-header .description {
    color: var(--neutral-gray);
    font-size: 1.1rem;
    margin: 0;
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 40, 85, 0.08);
}

.section-header {
    color: var(--primary-navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-teal);
    display: flex;
    align-items: center;
}

.section-header i {
    color: var(--primary-teal);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Form Controls */
.form-label {
    font-family: 'DIN Pro', sans-serif;
    color: var(--primary-navy);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 206, 0.1);
    background-color: var(--white);
}

.form-control:read-only {
    background-color: #f8f9fa;
    border-color: var(--light-gray);
    color: var(--neutral-gray);
}

.form-control::placeholder {
    color: var(--neutral-gray);
    opacity: 0.7;
}

.required {
    color: var(--accent-red);
    font-weight: 600;
}

/* Student Info Card */
.student-info-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--primary-teal);
    position: relative;
    margin-top: 1rem;
}

.student-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--accent-orange) 100%);
    border-radius: 12px 12px 0 0;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 114, 206, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 206, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e09600 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--neutral-gray);
    color: var(--neutral-gray);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--neutral-gray);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Help Links */
.student-number-help-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.student-number-help-link:hover {
    color: var(--primary-navy);
    text-decoration: underline;
    transform: translateX(3px);
}

/* Form Check */
.form-check-input {
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Form Select */
.form-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 206, 0.1);
    background-color: var(--white);
}

/* Verification Styles */
.verification-success {
    color: var(--accent-orange);
    font-weight: 500;
}

.verification-error {
    color: var(--accent-red);
    font-weight: 500;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.bg-success {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e09600 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b02a30 100%) !important;
}

/* Form Validation */
.form-control.is-valid {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(242, 169, 0, 0.1);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(203, 51, 59, 0.1);
}

.text-danger {
    color: var(--accent-red) !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Focus Effects */
.focused {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.focused .form-label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(242, 169, 0, 0.1) 0%, rgba(242, 169, 0, 0.05) 100%);
    color: var(--accent-orange);
    border-left: 4px solid var(--accent-orange);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(203, 51, 59, 0.1) 0%, rgba(203, 51, 59, 0.05) 100%);
    color: var(--accent-red);
    border-left: 4px solid var(--accent-red);
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 114, 206, 0.1) 0%, rgba(0, 114, 206, 0.05) 100%);
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue);
}

/* Wizard Navigation */
.wizard-navigation {
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 40, 85, 0.1);
    border-top: 1px solid var(--border-light);
    position: fixed;
}

.wizard-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-navy) 0%, var(--primary-blue) 50%, var(--primary-teal) 100%);
}

.step-info {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary-navy);
    border: 1px solid var(--border-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kayit-header {
        padding: 1.5rem 0;
    }
    
    .kayit-header .row {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .university-logo {
        height: 60px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .progress-container::before {
        display: none;
    }
    
    .step {
        min-width: auto;
    }
    
    .step-label {
        font-size: 0.85rem;
    }
    
    .wizard-content {
        padding: 1.5rem;
        margin-bottom: 140px;
    }
    
    .wizard-navigation .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    #kapaMailPassword{width:100%;}

}

@media (max-width: 576px) {
    .form-section {
        padding: 1.2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .wizard-progress,
    .wizard-content {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .fas {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Focus and Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Verification Styles */
.verification-success {
    color: var(--accent-orange);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(242, 169, 0, 0.1) 0%, rgba(242, 169, 0, 0.05) 100%);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-orange);
}

.verification-error {
    color: var(--accent-red);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(203, 51, 59, 0.1) 0%, rgba(203, 51, 59, 0.05) 100%);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-red);
}

.badge {
    border-radius: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-warning {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e09600 100%) !important;
    color: var(--white) !important;
}

/* Form Select */
.form-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23002855' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 206, 0.1);
    background-color: var(--white);
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Input Group Styles for Phone Verification */
.phone-verification-group {
    position: relative;
}

.phone-verification-group .form-control {
    border-radius: 8px 0 0 8px;
}

.phone-verification-group .btn {
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

/* SMS Verification Area */
#smsVerificationArea {
    background: linear-gradient(135deg, rgba(0, 161, 170, 0.05) 0%, rgba(0, 161, 170, 0.02) 100%);
    border: 1px solid var(--primary-teal);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* Focus Effects */
.form-control:focus,
.form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 114, 206, 0.15);
}

/* Animation for Form Sections */
.form-section {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focused Input Parent Styling */
.focused {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Validation Styles */
.form-control.is-valid {
    border-color: var(--accent-orange);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23F2A900' d='m2.3 6.73.94-.94 1.96 1.96 3.1-3.1.94.94L5.23 9.5z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: var(--accent-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23CB333B'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 2.4 2.4m0-2.4-2.4 2.4'/%3e%3c/svg%3e");
}

/* Print Styles */
@media print {
    .wizard-navigation,
    .wizard-progress {
        display: none;
    }
    
    .wizard-content {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 0;
    }
}
.progress-container{display:none !important;}
