:root {
    --primary-orange: #FF6B35;
    --primary-orange-dark: #E55A2B;
    --primary-orange-light: #FF8C5A;
    --bg-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --border-color: #E0E0E0;
    --success-green: #28A745;
}

html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body > div {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Modern Form Container */
.form-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin-bottom: 2rem;
}

/* Progress Indicator */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .progress-step-circle {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.progress-step.completed .progress-step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    position: relative;
    font-size: 0;
    line-height: 0;
}

.progress-step.completed .progress-step-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success-green);
    opacity: 0.2;
    transform: scale(1.5);
    z-index: -1;
}

.progress-step.completed .progress-step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.progress-step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-label {
    color: var(--primary-orange);
    font-weight: 600;
}

.progress-step.completed .progress-step-label {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.form-label .text-danger {
    display: inline-block;
    margin-right: 0;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: block;
}

.input-with-icon .form-control,
.input-with-icon .form-select {
    padding-left: 3rem;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

/* Photo Upload Button */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.photo-upload-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-orange);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.photo-upload-btn:hover {
    background: var(--primary-orange-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.photo-upload-btn .camera-icon {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.photo-upload-btn #photoPreview {
    z-index: 2;
}

.photo-upload-btn input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-upload-label {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 0.95rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

/* Education Section */
.education-section {
    margin-top: 2rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.add-education-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.add-education-link:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

.education-entry {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

.education-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.education-entry-actions {
    display: flex;
    gap: 1rem;
}

.education-entry-actions button {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.education-entry-actions button:hover {
    color: var(--primary-orange);
}

.education-entry-actions .btn-delete:hover {
    color: #dc3545;
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-primary, .btn-success {
    background: var(--primary-orange);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover, .btn-success:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Cards */
.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--border-color);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-body {
    padding: 2rem;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
input[type="file"] {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.05);
}

/* Checkboxes */
.form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.form-check-label .text-danger {
    display: inline-block;
    margin: 0;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0c5460;
    border-left: 4px solid #0dcaf0;
}

/* Footer Sticky */
body > div > .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body > div > .container-fluid > main {
    flex: 1;
    min-height: 0;
}

body > div > footer.footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

/* Logo Styles */
.navbar-brand {
    font-size: 1rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.875rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-brand span {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 28px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .form-container h1 {
        font-size: 1.5rem !important;
    }
    
    .progress-steps {
        margin-bottom: 2rem;
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-steps::before {
        left: 20px;
        right: 20px;
        top: 15px;
    }
    
    .progress-step {
        min-width: 60px;
        flex: 0 0 auto;
    }
    
    .progress-step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .progress-step-label {
        font-size: 0.65rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        margin-top: 0.25rem;
    }
    
    .section-header {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control, .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .input-with-icon .form-control,
    .input-with-icon .form-select {
        padding-left: 2.5rem;
    }
    
    .input-with-icon .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }
    
    .photo-upload-container {
        margin: 1.5rem 0;
    }
    
    .photo-upload-btn {
        width: 100px;
        height: 100px;
    }
    
    .photo-upload-btn .camera-icon {
        font-size: 2rem;
    }
    
    .photo-upload-label {
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .btn-primary, .btn-secondary, .btn-success {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .row.g-3 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row.g-3 > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
    
    .education-entry {
        padding: 1rem;
    }
    
    .education-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .education-entry-actions {
        align-self: flex-end;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem 0.75rem;
        margin: 0.25rem;
    }
    
    .form-container h1 {
        font-size: 1.25rem !important;
    }
    
    .progress-step {
        min-width: 50px;
    }
    
    .progress-step-circle {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
    
    .progress-step-label {
        font-size: 0.6rem;
    }
    
    .section-header {
        font-size: 1.1rem;
    }
    
    .photo-upload-btn {
        width: 80px;
        height: 80px;
    }
    
    .photo-upload-btn .camera-icon {
        font-size: 1.5rem;
    }
}

/* Form validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-green);
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Text capitalize - İlk harfi büyük yap */
.text-capitalize {
    text-transform: capitalize;
}