/**
 * NFC Booking Form - Modern Premium Styling
 */

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
}

.booking-page {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 40px 20px;
}

.booking-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step.completed .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.step span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.step.active span {
    color: var(--text-dark);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 3px;
    background: var(--border-color);
    margin: 0 10px;
    margin-bottom: 30px;
}

/* Booking Content */
.booking-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Booking Form Section */
.booking-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 40px;
}

.form-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid var(--bg-light);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:has(.form-group:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

.form-control:disabled,
.form-control:read-only {
    background: var(--bg-light);
    cursor: not-allowed;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

.error-message {
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.file-label:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.file-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-text {
    font-weight: 600;
    color: var(--text-dark);
}

.logo-preview {
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.logo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.remove-logo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-logo:hover {
    background: #DC2626;
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--bg-light);
    border-color: var(--text-dark);
}

.btn-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Order Summary Section */
.order-summary-section {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.selected-design {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
}

.design-preview {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.design-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
    margin-bottom: 8px;
}

.design-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.price-breakdown {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-light);
}

.price-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--bg-light);
}

.features-included {
    margin-bottom: 25px;
}

.features-included h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.features-included ul {
    list-style: none;
    padding: 0;
}

.features-included li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.features-included i {
    color: var(--success-color);
}

.secure-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .order-summary-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .booking-page {
        padding: 20px 15px;
    }
    
    .progress-steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .step span {
        font-size: 0.75rem;
    }
    
    .step-line {
        width: 40px;
    }
    
    .booking-form-section {
        padding: 25px 20px;
    }
    
    .form-row:has(.form-group:nth-child(2)) {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
