/* ===== PAGE HEADER ===== */
.order-header {
    padding: 8rem 0 2rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.03) 0%, rgba(var(--primary-color-rgb), 0.06) 100%);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.breadcrumb-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav i {
    font-size: 0.625rem;
}

.breadcrumb-nav span {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== MAIN LAYOUT ===== */
.order-section {
    padding: 0 0 4rem;
    background: var(--bg-light, #f9fafb);
    min-height: 60vh;
}

.order-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: flex-start;
}

/* ===== LEFT SIDE - SERVICE INFO ===== */
.service-main-content {
    min-width: 0;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-header-section {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.02) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
}

.service-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.08), rgba(var(--primary-color-rgb), 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-wrapper .placeholder-icon {
    font-size: 3rem;
    color: rgba(var(--primary-color-rgb), 0.4);
}

.service-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.service-category-badge i {
    font-size: 0.6875rem;
}

.service-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.service-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.06);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    border: none;
    transition: all 0.2s ease;
}

.service-meta-item:hover {
    background: rgba(var(--primary-color-rgb), 0.12);
}

.service-meta-item i {
    color: var(--primary-color);
    font-size: 0.6875rem;
    opacity: 0.8;
}

/* Service Download Bar */
.service-download-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.04), rgba(var(--primary-color-rgb), 0.08));
    border-bottom: 1px solid var(--border-color);
}

.download-bar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.download-bar-content {
    flex: 1;
    min-width: 0;
}

.download-bar-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.download-bar-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    transition: all 0.2s ease;
}

.download-bar-url:hover {
    color: var(--primary-dark);
}

.download-bar-url i {
    font-size: 0.625rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.download-bar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.download-bar-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.download-bar-btn i {
    font-size: 0.875rem;
}

/* Service Content Section */
.service-content-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-content-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-content-title i {
    color: var(--primary-color);
}

.service-content-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-content-body * {
    max-width: 100%;
}

.service-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.service-content-body p {
    margin-bottom: 1rem;
}

.service-content-body p:last-child {
    margin-bottom: 0;
}

/* ===== RIGHT SIDEBAR - ORDER FORM ===== */
.order-sidebar {
    position: sticky;
    top: 100px;
}

.order-form-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.order-form-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.order-form-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.order-form-header p {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin: 0;
}

.order-form-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-label-modern {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.required-mark {
    color: #ef4444;
}

.form-input-modern,
.form-textarea-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-input-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.form-hint-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

/* Form Section */
.form-section-divider {
    margin-bottom: 1.25rem;
}

.form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.04), rgba(var(--primary-color-rgb), 0.08));
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.summary-card-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
}

.summary-line-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.summary-line-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-separator {
    height: 1px;
    background: rgba(var(--primary-color-rgb), 0.15);
    margin: 0.5rem 0;
}

.summary-line-total .summary-line-label {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-line-total .summary-line-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.summary-balance-line .summary-line-value {
    color: var(--badge-success-color);
}

/* Submit Button */
.order-submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.order-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
}

.order-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.order-submit-button.btn-disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

/* Footer Notice */
.order-footer-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

.order-footer-notice i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.order-footer-notice a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.order-footer-notice a:hover {
    text-decoration: underline;
}

/* Order Disabled Notice */
.order-disabled-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.disabled-notice-icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.disabled-notice-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 0.25rem;
}

.disabled-notice-content p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Empty Content State */
.service-empty-content {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.empty-content-inner {
    text-align: center;
    padding: 2rem;
    background: rgba(var(--primary-color-rgb), 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(var(--primary-color-rgb), 0.2);
}

.empty-content-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.empty-content-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.empty-content-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.empty-content-inner p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .order-layout {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .order-container {
        padding: 0 1rem;
    }

    .order-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-sidebar {
        position: static;
        order: -1;
    }

    .service-main-content {
        order: 1;
    }
}

@media (max-width: 767.98px) {
    .order-section {
        padding: 0 0 3rem;
    }

    .order-container {
        padding: 0 0.75rem;
    }

    .service-card {
        border-radius: 12px;
    }

    .order-form-card {
        border-radius: 12px;
    }

    .service-content-section {
        padding: 1.25rem;
    }

    .order-form-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .order-container {
        padding: 0 0.5rem;
    }

    .service-content-section {
        padding: 1rem;
    }

    .order-form-body {
        padding: 1rem;
    }

    .order-form-header {
        padding: 1rem 1.25rem;
    }

    .order-form-header h2 {
        font-size: 1rem;
    }
}
