/* Order Page Specific Styles */

.order-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--light);
}

.order-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: -30px auto 50px;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Order Form Styles */
.order-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--light);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.size-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    margin-top: 15px;
}

.size-info span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--light);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(44, 95, 124, 0.05);
}

.file-upload-area svg {
    margin: 0 auto 15px;
    color: var(--primary-color);
}

.file-upload-area p {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.file-upload-area small {
    color: #999;
}

.file-preview {
    margin-top: 20px;
    display: none;
}

.file-preview.active {
    display: block;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.file-preview-info {
    flex: 1;
}

.file-preview-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
}

.file-preview-info small {
    color: #666;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.file-remove:hover {
    background: #c82333;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: rgba(44, 95, 124, 0.05);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
}

.checkbox-text small {
    display: block;
    color: #666;
    font-size: 13px;
}

.checkbox-price {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 8px;
    font-size: 16px;
}

/* Order Summary Styles */
.order-summary {
    position: sticky;
    top: 110px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.order-summary h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-section h4 {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.summary-row span:first-child {
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--dark);
}

.summary-divider {
    height: 2px;
    background: var(--light);
    margin: 20px 0;
}

.summary-total {
    font-size: 18px;
    color: var(--dark) !important;
}

.summary-total span {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.summary-total span:last-child {
    font-size: 24px;
}

/* Payment Section */
.payment-section {
    margin-top: 30px;
}

#card-container {
    margin-bottom: 20px;
}

.btn-pay {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
}

.btn-pay:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-pay:disabled:hover {
    background: #ccc;
    box-shadow: none;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
}

.badge-item svg {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 50px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-modal {
    position: relative;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease 0.2s backwards;
}

.success-modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-modal p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.success-modal p strong {
    color: var(--dark);
}

.success-modal .btn {
    margin-top: 30px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .order-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .order-section {
        padding: 100px 0 60px;
    }
    
    .order-form-section {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% 20px;
        padding: 35px 25px;
    }
    
    .file-upload-area {
        padding: 30px 20px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .order-intro {
        font-size: 1rem;
    }
    
    .size-info {
        flex-direction: column;
        gap: 8px;
    }
}
