/* ===== ORDER PAGE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #f59e0b;
    --accent: #ec4899;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--gray-light);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-pay { padding: 16px 32px; font-size: 16px; }

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}
.logo-icon { font-size: 24px; }
.logo-text { color: var(--primary); }

/* Order Page */
.order-page {
    padding: 40px 0 80px;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 40px;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    transition: width 0.5s ease;
    width: 0%;
}
.progress-text {
    text-align: right;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 16px;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.step {
    font-size: 12px;
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    white-space: nowrap;
}
.step.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.step.completed {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 30px;
}
.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary);
}
.step-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}
.step-header p {
    font-size: 14px;
    color: var(--gray);
}

/* Form Cards */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.form-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}
.form-card h3 i {
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}
.required { color: #ef4444; }
.optional { color: var(--gray); font-weight: 400; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-group input::placeholder {
    color: #9ca3af;
}

/* File Upload */
.file-upload {
    position: relative;
    cursor: pointer;
}
.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.file-label:hover {
    border-color: var(--primary);
    background: #faf5ff;
}
.file-label i {
    font-size: 32px;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.file-label span {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}
.file-label small {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview-item .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-name-list {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary);
}

/* Template Select */
.selected-template {
    background: #f3e8ff;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
}
.selected-template strong {
    color: var(--primary);
}

/* Agreement */
.agreement-info {
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-item:last-child { border-bottom: none; }
.info-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}
.info-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.info-item p {
    font-size: 13px;
    color: var(--gray);
}
.price-highlight {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.checklist-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}
.checklist-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}
.form-check label {
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    line-height: 1.5;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .progress-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    .step {
        font-size: 11px;
        padding: 4px 8px;
    }
    .form-card {
        padding: 20px;
    }
    .form-navigation {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 20px;
    }
    .progress-steps {
        display: none;
    }
}
