/* Multi-Step Form CSS - Sektör Lideri */

/* Progress Bar Styles */
.progress-container {
    background: transparent;
    padding: 30px 0;
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    z-index: 2;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar[data-progress="1"]::after { width: 0%; }
.progress-bar[data-progress="2"]::after { width: 20%; }
.progress-bar[data-progress="3"]::after { width: 40%; }
.progress-bar[data-progress="4"]::after { width: 60%; }
.progress-bar[data-progress="5"]::after { width: 80%; }

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    min-width: 120px;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.progress-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.progress-step.completed .step-icon {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.progress-step.active .step-text {
    color: #667eea;
    font-weight: 700;
}

.progress-step.completed .step-text {
    color: #28a745;
}

/* Form Container */
.multi-step-form-container {
    background: transparent;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 20px 0;
    min-height: 400px;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.step-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.step-header h3 i {
    margin-right: 10px;
    color: #667eea;
}

.step-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Form Content */
.form-content {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 25px;
}

.form-row.half {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0 0 calc(50% - 10px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    accent-color: #667eea;
    transform: scale(1.2);
}

.checkbox-item.agreement {
    border: none;
    padding: 15px 0;
    background: transparent;
}

.checkbox-text {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
}

/* File Upload */
.file-upload-area {
    border: 1px dashed #d0d0d0;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ffffff;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-placeholder i {
    font-size: 48px;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.upload-placeholder p {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #2c3e50;
}

.upload-placeholder small {
    color: #7f8c8d;
    font-size: 12px;
}

/* Summary Section */
.summary-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
}

#application-summary {
    display: grid;
    gap: 15px;
}

.summary-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

.summary-value {
    color: #7f8c8d;
    flex: 1;
}

/* Error Messages */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.checkbox-group.error {
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 15px;
    background-color: rgba(220, 53, 69, 0.1);
}

.checkbox-group.error .error-message {
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Agreements */
.agreements {
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 4px;
    padding: 20px;
}

/* Form Navigation */
.form-navigation {
    background: transparent;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    opacity: 0.9;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    opacity: 0.9;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.info-card i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.info-card h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.info-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 20px !important;
    }
    
    .progress-container,
    .multi-step-form-container {
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-step {
        min-width: auto;
        flex: 1;
    }
    
    .step-text {
        font-size: 10px;
    }
    
    .form-step {
        padding: 15px 5px;
        min-height: auto;
    }
    
    .form-content {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .form-row.half {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        flex: 1;
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        padding: 15px 5px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* Summary Section Mobile */
    .summary-section {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .summary-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .summary-item {
        flex-direction: column;
        padding: 12px 0;
        gap: 5px;
    }
    
    .summary-label {
        min-width: auto;
        font-size: 14px;
        font-weight: 700;
        color: #667eea;
    }
    
    .summary-value {
        font-size: 14px;
        color: #2c3e50;
        word-break: break-all;
    }
    
    /* Info Cards Mobile */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .info-card {
        padding: 20px 10px;
    }
    
    .info-card i {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .info-card h4 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .info-card p {
        font-size: 13px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .progress-bar::before,
    .progress-bar::after {
        display: none;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.form-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 25px;
}

.success-title {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.success-message {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.account-info {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 400px;
}

.account-info h4 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.account-info p {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 14px;
}

.info-note {
    background: #e8f5e8;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px !important;
    color: #155724 !important;
    margin-top: 15px !important;
}

.next-steps {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.next-steps h4 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.next-steps li {
    padding: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.next-steps p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 15px 0 0 0;
    text-align: center;
    font-style: italic;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 140px;
    padding: 12px 20px;
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .multi-step-form-container,
    .progress-container {
        margin-bottom: 15px;
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }
    
    .form-step {
        padding: 15px 10px;
    }
    
    .step-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .step-header h3 {
        font-size: 20px;
    }
    
    .step-header p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* iOS zoom engelleme */
    }
    
    .summary-section {
        padding: 12px;
        border-radius: 4px;
    }
    
    .summary-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
        text-align: center;
        color: #667eea;
    }
    
    .summary-item {
        padding: 8px 0;
        margin-bottom: 2px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .summary-label {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .summary-value {
        font-size: 13px;
        font-weight: 500;
    }
    
    .form-navigation {
        padding: 10px;
    }
    
    .btn {
        padding: 12px 16px;
    }
    
    .progress-step {
        min-width: 60px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-text {
        font-size: 8px;
    }
    
    .form-success {
        padding: 40px 20px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .account-info {
        padding: 20px 15px;
        margin: 20px auto;
    }
    
    .next-steps {
        padding: 20px 15px;
        margin: 20px auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}