/* ===== Moving Service Page ===== */

.moving-service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4, 2rem) var(--space-3, 1rem);
}

/* ===== Header Section ===== */
.moving-service-header {
    text-align: center;
    margin-bottom: var(--space-5, 3rem);
}

.moving-service-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-2, 0.5rem);
}

.moving-service-header .header-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary, #666);
    margin: 0;
}

/* ===== Form Card ===== */
.form-card {
    background: white;
    border-radius: 12px;
    padding: var(--space-4, 2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-4, 2rem);
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-4, 2rem);
}

/* ===== Form Grid Layout (Desktop) ===== */
.moving-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4, 2rem);
}

@media (min-width: 992px) {
    .moving-form-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto 1fr;
    }

    /* Order Time - Full width at top */
    .moving-form-grid > .form-section:nth-child(1) {
        grid-column: 1 / -1;
    }

    /* From Address - Left column */
    .moving-form-grid > .form-section:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    /* To Address - Right column */
    .moving-form-grid > .form-section:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    /* General Remarks - Full width */
    .moving-form-grid > .form-section:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    /* Submit Button - Full width at bottom */
    .moving-form-grid > .form-actions {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 0;
    padding: var(--space-3, 1rem);
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--color-border, #e0e0e0);
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-3, 1rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: 2px solid var(--color-primary, #007bff);
}

/* ===== Form Groups ===== */
.form-group {
    margin-bottom: var(--space-3, 1rem);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-2, 0.5rem);
}

.form-group .required {
    color: var(--color-danger, #dc3545);
}

.form-group .form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.form-group .text-muted {
    color: var(--color-text-secondary, #6c757d);
}

.form-group .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ===== Time Options ===== */
.time-options {
    display: flex;
    gap: var(--space-3, 1rem);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    margin-bottom: 0;
}

/* ===== Checkbox Group ===== */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 1rem);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option label {
    cursor: pointer;
    margin-bottom: 0;
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: var(--space-3, 1rem);
}

@media (min-width: 992px) {
    .form-actions {
        padding-top: var(--space-4, 2rem);
    }
}

/* ===== Services Section ===== */
.services-section {
    background: white;
    border-radius: 12px;
    padding: var(--space-4, 2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-4, 2rem);
}

.services-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-4, 2rem);
    text-align: center;
}

/* ===== Service Group ===== */
.service-group {
    margin-bottom: var(--space-5, 3rem);
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-3, 1rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: 2px solid var(--color-primary, #007bff);
}

/* ===== Service Cards ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-3, 1rem);
}

.service-card {
    position: relative;
    background: white;
    border: 2px solid var(--color-border, #e0e0e0);
    border-radius: 12px;
    padding: var(--space-3, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: var(--color-success, #28a745);
    background: rgba(40, 167, 69, 0.05);
}

.service-card.selected .service-check {
    display: flex;
}

/* ===== Disabled Service Card ===== */
.service-card-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: #f8f9fa;
}

.service-card-disabled:hover {
    border-color: var(--color-border, #e0e0e0) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ===== Service Card Elements ===== */
.service-image {
    text-align: center;
    margin-bottom: var(--space-3, 1rem);
}

.service-image img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.service-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-light, #e7f3ff);
    color: var(--color-primary, #007bff);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-2, 0.5rem);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-3, 1rem);
}

.service-features {
    margin-bottom: var(--space-3, 1rem);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2, 0.5rem);
    margin-bottom: var(--space-2, 0.5rem);
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #666);
}

.service-price {
    padding-top: var(--space-3, 1rem);
}

/* Simple price display (fallback) */
.service-price-simple {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success, #28a745);
    text-align: center;
}

/* Price Breakdown */
.price-breakdown {
    font-size: 0.9rem;
}

.price-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

.price-detail-label {
    color: var(--color-text-secondary, #666);
    font-weight: 500;
}

.price-detail-value {
    color: var(--color-text-primary, #1a1a1a);
    font-weight: 600;
    text-align: right;
}

/* Discount styling */
.price-detail-item.price-discount .price-detail-label {
    color: var(--color-danger, #dc3545);
}

.price-detail-item.price-discount .price-detail-value {
    color: var(--color-danger, #dc3545);
}

/* Subtotal styling */
.price-detail-item.price-subtotal {
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border, #e0e0e0);
}

.price-detail-item.price-subtotal .price-detail-label {
    color: var(--color-text-primary, #1a1a1a);
}

/* Total price styling */
.price-detail-item.price-total {
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border, #e0e0e0);
    margin-top: 0.5rem;
}

.price-detail-item.price-total .price-detail-label {
    font-size: 1.1rem;
    color: var(--color-text-primary, #1a1a1a);
    font-weight: 600;
}

.price-detail-item.price-total .price-detail-value {
    font-size: 1.3rem;
    color: var(--color-success, #28a745);
    font-weight: 700;
}

/* Price divider */
.price-divider {
    height: 1px;
    background: var(--color-border, #e0e0e0);
    margin: 0.5rem 0;
}

/* ===== Service Error Display ===== */
.service-price .error-text {
    color: #c53030;
}

.service-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--color-success, #28a745);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.service-check .check-icon {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

/* ===== Order Actions ===== */
.order-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-4, 2rem);
}

/* ===== Result Section ===== */
.result-section {
    background: white;
    border-radius: 12px;
    padding: var(--space-4, 2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== No Services Message ===== */
.no-services {
    text-align: center;
    color: var(--color-text-secondary, #666);
    padding: var(--space-4, 2rem);
}

/* ===== Buttons ===== */
.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary, #007bff);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark, #0056b3);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: var(--color-success, #28a745);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--color-success-dark, #218838);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .moving-service-container {
        padding: var(--space-3, 1rem) var(--space-2, 0.5rem);
    }

    .moving-service-header h1 {
        font-size: 1.5rem;
    }

    .moving-service-header .header-subtitle {
        font-size: 1rem;
    }

    .form-card,
    .services-section,
    .result-section {
        padding: var(--space-3, 1rem);
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .time-options {
        flex-direction: column;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .form-card h2,
    .services-section h2 {
        font-size: 1.25rem;
    }

    .form-section h3 {
        font-size: 1.125rem;
    }

    .service-name {
        font-size: 1.125rem;
    }

    .service-price-simple {
        font-size: 1.25rem;
    }

    .price-breakdown {
        font-size: 0.85rem;
    }

    .price-detail-item {
        padding: 0.4rem 0;
    }

    .price-detail-item.price-total .price-detail-value {
        font-size: 1.15rem;
    }
}

/* ===== Wizard Stepper ===== */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5, 3rem);
    padding: var(--space-3, 1rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-2, 0.5rem);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.stepper-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Disable navigation when on final step */
.stepper-item.navigation-disabled .stepper-circle {
    cursor: not-allowed;
    opacity: 0.6;
}

.stepper-item.navigation-disabled .stepper-circle:hover {
    transform: none;
    box-shadow: none;
}

.stepper-item.active .stepper-circle {
    background: var(--color-primary, #007bff);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.stepper-item.completed .stepper-circle {
    background: var(--color-success, #28a745);
    color: white;
}

.stepper-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.stepper-item.active .stepper-label {
    color: var(--color-primary, #007bff);
    font-weight: 600;
}

.stepper-line {
    height: 2px;
    width: 80px;
    background: #e0e0e0;
    margin: 0 var(--space-2, 0.5rem);
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.stepper-item.completed ~ .stepper-line {
    background: var(--color-success, #28a745);
}

/* ===== Wizard Sections ===== */
.wizard-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Wizard Navigation ===== */
.wizard-navigation {
    display: flex;
    gap: var(--space-3, 1rem);
    justify-content: center;
    margin-top: var(--space-4, 2rem);
}

.wizard-navigation .btn {
    min-width: 150px;
}

/* ===== Review Modal ===== */
.review-section {
    margin-bottom: var(--space-4, 2rem);
    padding-bottom: var(--space-3, 1rem);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: var(--space-3, 1rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: 2px solid var(--color-primary, #007bff);
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-2, 0.5rem) 0;
    gap: var(--space-3, 1rem);
}

.review-label {
    font-weight: 500;
    color: #666;
    min-width: 150px;
    flex-shrink: 0;
}

.review-value {
    color: var(--color-text-primary, #1a1a1a);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* ===== Responsive Wizard ===== */
@media (max-width: 768px) {
    .wizard-stepper {
        padding: var(--space-2, 0.5rem);
    }

    .stepper-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stepper-label {
        font-size: 0.75rem;
    }

    .stepper-line {
        width: 40px;
        margin: 0 var(--space-1, 0.25rem);
    }

    .review-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-label {
        min-width: auto;
    }

    .review-value {
        text-align: left;
    }

    .wizard-navigation {
        flex-direction: column;
    }

    .wizard-navigation .btn {
        width: 100%;
    }
}
