/* Form Ana Container Stilleri */
#step-form-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 30px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

#step-form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #ff8eb4, #ff5c94);
}

/* Form Başlık Stilleri */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
}

.form-header p {
    color: #777;
    font-size: 16px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar Stilleri */
.form-progress-container {
    margin-bottom: 40px;
    position: relative;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.form-progress {
    background: linear-gradient(to right, #ff8eb4, #ff5c94);
    height: 100%;
    width: 0;
    transition: width 0.5s ease;
    position: relative;
    border-radius: 10px;
}

.form-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Tooltip */
.progress-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    transform: translateX(50%);
    display: none;
}

.progress-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

/* Adım Bilgisi */
.step-info {
    position: absolute;
    right: 0;
    bottom: -25px;
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

/* Soru Stilleri */
.form-question {
    transition: all 0.3s ease;
}

.form-step {
    animation: fadeIn 0.5s ease;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.form-step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff8eb4, #ff5c94);
    border-radius: 4px 0 0 4px;
}

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

.form-question-title {
    margin-bottom: 20px;
}

.form-question-title h3 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    display: inline;
    line-height: 1.4;
}

.form-question-title .text-danger {
    color: #ff5c94;
    font-weight: bold;
    margin-left: 4px;
}

.form-question-input {
    margin-bottom: 25px;
    position: relative;
}

/* Input Focus Animation */
.input-focused::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #ff8eb4, #ff5c94);
    animation: focusLine 0.3s ease forwards;
}

@keyframes focusLine {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Form Kontrol Stilleri */
.form-control {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    background-clip: padding-box;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    color: #333;
    background-color: #fff;
    border-color: #ff8eb4;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 142, 180, 0.2);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-select {
    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='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select.selected {
    border-color: #ff8eb4;
    background-color: #fff;
}

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

/* Error Message Stilleri */
.form-question-error {
    color: #dc3545;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Button Stilleri */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-default {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-next, .btn-submit {
    background: linear-gradient(45deg, #ff8eb4, #ff5c94);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 142, 180, 0.3);
}

.btn-next:hover, .btn-submit:hover,
.btn-next.btn-hover, .btn-submit.btn-hover {
    box-shadow: 0 8px 20px rgba(255, 142, 180, 0.4);
    transform: translateY(-2px);
}

.btn-prev {
    background: transparent;
    color: #777;
    border: 2px solid #eee;
}

.btn-prev:hover {
    color: #ff5c94;
    border-color: #ff8eb4;
    background-color: rgba(255, 142, 180, 0.05);
}

.btn-default i {
    margin-right: 10px;
    margin-left: 10px;
    font-size: 14px;
}

/* Button Ripple Effect */
.btn-next:after, .btn-submit:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-next:focus:not(:active)::after, .btn-submit:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Özet Ekranı Stilleri */
.form-summary {
    margin-bottom: 30px;
}

.form-summary h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    font-size: 22px;
}

.form-summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ffe1eb;
}

.form-summary-label {
    font-weight: 600;
    min-width: 200px;
    color: #666;
    font-size: 16px;
}

.form-summary-value {
    flex: 1;
    text-align: left;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* Loading Overlay Stilleri */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px;
    backdrop-filter: blur(3px);
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner i {
    font-size: 50px;
    color: #ff8eb4;
    margin-bottom: 15px;
    animation: spin 1s infinite linear;
}

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

.loading-spinner span {
    display: block;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

/* Alert Stil */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 16px;
    position: relative;
}

.alert-danger {
    background-color: #fff2f5;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/* Animasyonlu Adım Geçişleri */
.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    #step-form-container {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .form-header h3 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-question-title h3 {
        font-size: 18px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-default {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        text-align: center;
    }
    
    .form-summary-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-summary-label {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .form-summary-value {
        padding-left: 10px;
        border-left: 3px solid #ff8eb4;
    }
} 