/* Order Page Specific Styles */

/* Order Hero Section */
.order-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.order-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.order-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Progress Steps */
.order-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Order Form Section */
.order-form-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.order-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 3rem;
    animation: slideInFromRight 0.3s ease;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.step-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.step-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Requirements Section */
.requirements-section {
    margin-bottom: 2rem;
}

.requirements-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
}

.checkbox-item:hover {
    background: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.form-navigation .btn {
    min-width: 150px;
    justify-content: center;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.summary-section p {
    color: #666;
    margin: 0.25rem 0;
}

.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    color: #666;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    margin-right: 0.5rem;
}

/* Terms Section */
.terms-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.terms-section .checkbox-item {
    margin-bottom: 1rem;
}

.form-step .terms-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.terms-section .checkbox-item:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: #667eea;
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInFromTop 0.3s ease;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    color: #28a745;
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
}

.order-id {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.next-steps {
    margin-top: 1.5rem;
}

.next-steps h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.next-steps li:last-child {
    border-bottom: none;
}

.next-steps li::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #667eea;
    margin-right: 0.5rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading State */
.form-step.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Success States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-hero {
        padding: 100px 0 40px;
    }
    
    .order-hero-content h1 {
        font-size: 2rem;
    }
    
    .order-steps {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .order-hero-content p {
        font-size: 1rem;
    }
    
    .order-steps {
        gap: 0.5rem;
    }
    
    .step {
        flex: 1;
    }
    
    .step-text {
        display: none;
    }
    
    .form-step {
        padding: 1.5rem 1rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .step-header p {
        font-size: 1rem;
    }
}

/* Manual Mode Specific Styles */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: white;
}

.btn-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);
}

/* Manual mode notification styles */
.manual-mode-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #856404;
}

.manual-mode-notice h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
}

.manual-mode-notice p {
    margin: 0;
    font-size: 0.9rem;
}