/* Shop Introduction Form Styles */

/* Universal Font Application */
* {
    font-family: 'Yekan', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Exclude Icons from Font Family */
i, .fas, .far, .fab, .fa, [class*="fa-"], [class*="icon-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Regular', 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'Font Awesome 5 Regular', 'Font Awesome 4.7.0' !important;
}

.shop-intro-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.shop-intro-form .card {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.shop-intro-form .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.shop-intro-form .form-control,
.shop-intro-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.shop-intro-form .form-control:focus,
.shop-intro-form .form-select:focus {
    border-color: #8A9FFB;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: #fff;
}

.shop-intro-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.shop-intro-form .form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.shop-intro-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.shop-intro-form .form-label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

.shop-intro-form .btn {
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: none;
}

.shop-intro-form .btn-primary {
    background: linear-gradient(135deg, #8A9FFB 0%, #6A5ACD 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.shop-intro-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.shop-intro-form .btn-primary:active {
    transform: translateY(0);
}

.shop-intro-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Section headers */
.shop-intro-form h4 {
    color: #8A9FFB;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.shop-intro-form h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #8A9FFB 0%, #6A5ACD 100%);
}

.shop-intro-form h4 i {
    margin-left: 8px;
    color: #6A5ACD;
}

/* Form sections */
.form-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-section:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Character counter */
.character-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}

/* Alert messages */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    margin-left: 8px;
}

/* Form validation feedback */
.invalid-feedback {
    display: block !important;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
}

.valid-feedback {
    display: block !important;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-intro-form .card-body {
        padding: 25px 20px;
    }
    
    .shop-intro-form .form-section {
        padding: 20px 15px;
    }
    
    .shop-intro-form .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .shop-intro-form h1 {
        font-size: 2rem;
    }
    
    .shop-intro-form .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .shop-intro-form .card-body {
        padding: 20px 15px;
    }
    
    .shop-intro-form .form-section {
        padding: 15px 10px;
    }
    
    .shop-intro-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .shop-intro-form .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading spinner */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Form field groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-group .form-control,
.form-group .form-select {
    width: 100%;
}

/* Required field indicator */
.required-field::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Help text */
.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Success page specific styles */
.shop-success-page {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    min-height: 100vh;
}

.success-icon .icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.success-details {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.tracking-id {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.tracking-id .id-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #8A9FFB;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: inline-block;
    margin: 10px 0;
}

.action-buttons {
    margin-top: 30px;
}

.action-buttons .btn {
    margin: 0 10px;
    min-width: 150px;
}

/* Copy button animation */
.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Progress indicator */
.progress-steps {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    position: relative;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 20px;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    background: #8A9FFB;
    color: #fff;
}

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

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

/* Form field animations */
.form-control:focus,
.form-select:focus {
    transform: scale(1.02);
}

.form-control:hover,
.form-select:hover {
    border-color: #adb5bd;
}

/* Submit button loading state */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   Wizard Multi-Step Form Styles
   ============================================ */

/* Progress Steps Container */
.wizard-progress {
    margin-bottom: 2rem;
}

.progress-container {
    position: relative;
    padding: 0 20px;
}

.progress-steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

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

.progress-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    margin-bottom: 8px;
}

.progress-step .step-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #8A9FFB 0%, #6A5ACD 100%);
    color: #fff;
    border-color: #8A9FFB;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(138, 159, 251, 0.4);
}

.progress-step.active .step-label {
    color: #8A9FFB;
    font-weight: 700;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.progress-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
}

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

/* Progress Bar */
.progress-bar-wrapper {
    position: absolute;
    top: 25px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8A9FFB 0%, #6A5ACD 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

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

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.step-header h3 {
    color: #8A9FFB;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Step Actions */
.step-actions {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.step-actions .btn {
    min-width: 140px;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 30px;
}

/* Collapsible Sections */
.btn-link {
    color: #8A9FFB;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #6A5ACD;
    text-decoration: none;
}

.btn-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.btn-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.collapse {
    transition: all 0.3s ease;
}

/* Form Field Improvements */
.shop-intro-form .form-control:focus,
.shop-intro-form .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 159, 251, 0.2);
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .progress-steps-wrapper {
        padding: 0 10px;
    }
    
    .progress-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .progress-step .step-label {
        font-size: 11px;
    }
    
    .progress-bar-wrapper {
        top: 20px;
        left: 10px;
        right: 10px;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .progress-step .step-label {
        display: none;
    }
    
    .progress-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .progress-bar-wrapper {
        top: 17.5px;
    }
}
