/* Step-by-Step Page Styles */

.step-by-step-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header */
.site-header {
    padding: 15px 0;
}

.logo {
    max-height: 40px;
    width: auto;
}

/* Form Section */
.form-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.left-part h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.left-part h1 span {
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form Area */
.form-area {
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 500px;
}

.form-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-sub-title {
    color: #666;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar-form {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    font-size: 12px;
    line-height: 8px;
    text-align: center;
    color: white;
    font-weight: 600;
    padding: 8px 0;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand Selection */
.item-logo {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-logo:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.item-logo.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.brand-logo {
    max-height: 60px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.item-logo:hover .brand-logo,
.item-logo.selected .brand-logo {
    filter: grayscale(0%);
}

.text-logo {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-logo:hover,
.text-logo.selected {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Time Options */
.time-option {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-option:hover {
    border-color: #007bff !important;
    background: #f8f9ff !important;
    transform: translateX(5px);
}

.time-option.selected {
    border-color: #007bff !important;
    background: #007bff !important;
    color: white !important;
}

/* Reward Options */
.reward-option {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 80px;
}

.reward-option:hover {
    border-color: #007bff !important;
    background: #f8f9ff !important;
    transform: translateX(5px);
}

.reward-option.selected {
    border-color: #007bff !important;
    background: #007bff !important;
    color: white !important;
}

.reward-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Form Controls */
.form-control-lg {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navigation Buttons */
.form-navigation {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

#nextBtn, #prevBtn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#nextBtn:hover, #prevBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
.loading {
    position: relative;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    margin: 20px auto;
    animation: checkmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 166;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .left-part h1 {
        font-size: 1.8rem;
        text-align: center;
        color: #333;
        text-shadow: none;
        margin-bottom: 2rem;
    }
    
    .step-by-step-page {
        background: #f8f9fa;
    }
    
    .form-section {
        padding: 20px 0;
        min-height: auto;
    }
    
    .form-area {
        margin: 0 10px;
        padding: 20px !important;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .item-logo {
        height: 80px;
        padding: 10px;
    }
    
    .brand-logo {
        max-height: 40px;
        max-width: 80px;
    }
    
    .reward-option {
        min-height: 60px;
        padding: 15px !important;
    }
    
    .reward-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .form-title {
        font-size: 1.1rem;
    }
    
    .item-logo {
        height: 70px;
        margin-bottom: 10px;
    }
    
    .brand-logo {
        max-height: 35px;
        max-width: 70px;
    }
    
    .progress-bar-form {
        font-size: 10px;
    }
    
    .form-control-lg {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Animation Delays */
.item-logo:nth-child(1) { animation-delay: 0.1s; }
.item-logo:nth-child(2) { animation-delay: 0.2s; }
.item-logo:nth-child(3) { animation-delay: 0.3s; }
.item-logo:nth-child(4) { animation-delay: 0.4s; }
.item-logo:nth-child(5) { animation-delay: 0.5s; }
.item-logo:nth-child(6) { animation-delay: 0.6s; }
.item-logo:nth-child(7) { animation-delay: 0.7s; }
.item-logo:nth-child(8) { animation-delay: 0.8s; }
.item-logo:nth-child(9) { animation-delay: 0.9s; }

.time-option:nth-child(1) { animation-delay: 0.1s; }
.time-option:nth-child(2) { animation-delay: 0.2s; }
.time-option:nth-child(3) { animation-delay: 0.3s; }
.time-option:nth-child(4) { animation-delay: 0.4s; }

.reward-option:nth-child(1) { animation-delay: 0.1s; }
.reward-option:nth-child(2) { animation-delay: 0.2s; }
.reward-option:nth-child(3) { animation-delay: 0.3s; }