/* Booking Form Styles - Reusable across different layouts */

/* Full-size booking wizard (for booking.php) */
.booking-wizard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.step-progress {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    background: transparent;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
    border-radius: 2px;
}

.step-progress li {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.step-progress li::before {
    content: attr(data-step);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.step-progress li.active::before {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}

.step-progress li.active {
    color: #007bff;
}

.step-progress li.completed::before {
    background: #28a745;
    border-color: #28a745;
    color: white;
    content: '✓';
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(40,167,69,0.3);
}

.step-progress li.completed {
    color: #28a745;
}

.step-progress li.completed::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    width: calc(100% - 25px);
    height: 3px;
    background: #28a745;
    z-index: -1;
    border-radius: 2px;
}

.step-content {
    padding: 40px;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

/* Modern compact booking form (for homepage slider) */
.booking-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.booking-compact .compact-title {
    text-align: center;
    margin-bottom: 20px;
}

.booking-compact .compact-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-compact .compact-title p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.booking-compact .step-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    background: transparent;
    border: none;
    position: relative;
    padding: 0 10px;
}

.booking-compact .step-progress::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    border-radius: 1px;
}



.booking-compact .step-progress li {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    font-weight: 600;
    font-size: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    text-align: center;
    flex: 1;
    max-width: 70px;
}

.booking-compact .step-progress li::before {
    content: attr(data-step);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.booking-compact .step-progress li.active {
    color: #007bff;
}

.booking-compact .step-progress li.active::before {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,123,255,0.4);
}

.booking-compact .step-progress li.completed {
    color: #28a745;
    background: none;
}

.booking-compact .step-progress li.completed::before {
    background: #28a745;
    border-color: #28a745;
    color: white;
    content: '✓';
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(40,167,69,0.4);
}

.booking-compact .step-progress li.completed::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #28a745;
    z-index: 2;
    border-radius: 1px;
}

.booking-compact .step-progress li:last-child.completed::after {
    display: none;
}

.booking-compact .step-content {
    padding: 0;
    min-height: 250px;
}

.booking-compact .step-panel h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-compact .step-panel h3 i {
    color: #007bff;
    font-size: 20px;
}

/* Modern form elements */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    transform: translateY(-1px);
}

/* Modern service and volume options */
.service-option,
.volume-option {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-option:hover,
.volume-option:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.service-option.selected,
.volume-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.2);
}

.service-option input[type="radio"],
.volume-option input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    width: auto;
}

.service-option h4,
.volume-option .size-label {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.service-option p,
.volume-option .dimensions {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.volume-option .price {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

/* Modern compact layout adjustments */
.booking-compact .service-option,
.booking-compact .volume-option {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.booking-compact .service-option h4,
.booking-compact .volume-option .size-label {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.booking-compact .service-option p,
.booking-compact .volume-option .dimensions {
    font-size: 13px;
    margin-bottom: 5px;
    color: #6c757d;
    line-height: 1.4;
}

.booking-compact .volume-option .price {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}

/* Modern grid layouts */
.size-method-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.volume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.booking-compact .volume-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Tables */
.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.items-table th,
.items-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Modern price summary */
.price-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    margin-top: 25px;
    border: 1px solid rgba(0,123,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 15px;
}

.price-row.total {
    border-top: 2px solid #007bff;
    padding-top: 15px;
    font-weight: 700;
    font-size: 20px;
    color: #007bff;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
    margin: 15px -25px -25px -25px;
    padding: 20px 25px;
    border-radius: 0 0 16px 16px;
}

.booking-compact .price-summary {
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
}

.booking-compact .price-row {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.booking-compact .price-row.total {
    font-size: 16px;
    margin: 10px -15px -15px -15px;
    padding: 12px 15px;
    border-radius: 0 0 10px 10px;
}

/* Modern navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    background: transparent;
    border: none;
    margin-top: 20px;
}

.btn-step {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-prev {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-prev:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.3);
}

.btn-next {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.booking-compact .form-navigation {
    padding: 15px 0;
    background: transparent;
    border: none;
    margin-top: 15px;
}

.booking-compact .btn-step {
    padding: 10px 20px;
    font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
    .step-progress {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .step-progress::before {
        left: 40px;
        right: 40px;
    }
    
    .step-progress li {
        font-size: 11px;
        text-align: center;
    }
    
    .step-progress li::before {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .booking-compact .step-progress {
        padding: 0 5px;
    }
    
    .booking-compact .step-progress::before {
        left: 40px;
        right: 40px;
    }
    
    .booking-compact .step-progress li {
        font-size: 9px;
        max-width: 60px;
    }
    
    .booking-compact .step-progress li::before {
        width: 35px;
        height: 35px;
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .booking-compact .step-progress li.completed::before {
        font-size: 14px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .volume-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-compact .volume-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        padding: 15px 20px;
    }
}

/* Compact form specific styles */
.booking-compact .service-info-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.booking-compact .service-info-card h4 {
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.booking-compact .service-info-card p {
    color: #155724;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.booking-compact .size-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.booking-compact .size-method-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-compact .size-method-option:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    transform: translateY(-1px);
}

.booking-compact .size-method-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-1px);
}

.booking-compact .size-method-option input[type="radio"] {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    transform: scale(1.3);
    accent-color: #007bff;
}

.booking-compact .size-method-option .option-content {
    flex: 1;
}

.booking-compact .size-method-option .option-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.booking-compact .size-method-option .option-content p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.booking-compact .compact-items,
.booking-compact .compact-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.booking-compact .item-row,
.booking-compact .extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.booking-compact .item-row span,
.booking-compact .extra-row span {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.booking-compact .item-row select,
.booking-compact .extra-row select {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.booking-compact .compact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-compact .compact-form .form-row {
    gap: 10px;
    margin-bottom: 8px;
}

.booking-compact .compact-form .form-group {
    margin-bottom: 8px;
}

.booking-compact .compact-form .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.booking-compact .compact-form .form-group input,
.booking-compact .compact-form .form-group select {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.booking-compact .compact-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.booking-compact .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2c3e50;
    cursor: pointer;
}

.booking-compact .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(0.9);
}

.booking-compact .checkbox-label span {
    line-height: 1.3;
}

/* Success Message Styles */
.success-panel {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 16px;
    border: 2px solid #28a745;
    box-shadow: 0 8px 25px rgba(40,167,69,0.2);
    animation: successSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-content {
    max-width: 320px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 15px;
}

.success-icon i {
    font-size: 50px;
    color: #28a745;
    animation: successPulse 2s infinite;
}

.success-panel h3 {
    color: #155724;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.success-panel p {
    color: #155724;
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-weight: 500;
}

.booking-details {
    margin: 20px 0;
}

.booking-reference {
    background: rgba(255,255,255,0.9);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(40,167,69,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.booking-reference i {
    color: #28a745;
    font-size: 14px;
}

.booking-reference strong {
    color: #155724;
    font-size: 15px;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    font-size: 12px;
    color: #155724;
    font-weight: 500;
    text-align: left;
}

.step-item i {
    color: #28a745;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.success-panel .btn-step {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.success-panel .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.success-panel .btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.success-panel .btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #155724;
    border: 1px solid rgba(40,167,69,0.3);
}

.success-panel .btn-secondary:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #155724;
    text-decoration: none;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .booking-compact {
        padding: 15px;
    }
    
    .step-progress li {
        font-size: 10px;
    }
    
    .step-progress li::before {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .booking-compact .step-progress {
        padding: 0;
    }
    
    .booking-compact .step-progress::before {
        left: 35px;
        right: 35px;
    }
    
    .booking-compact .step-progress li {
        font-size: 8px;
        max-width: 50px;
    }
    
    .booking-compact .step-progress li::before {
        width: 30px;
        height: 30px;
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .booking-compact .step-progress li.completed::before {
        font-size: 12px;
    }
    
    .booking-compact .item-row,
    .booking-compact .extra-row {
        padding: 8px 12px;
    }
    
    .booking-compact .item-row span,
    .booking-compact .extra-row span {
        font-size: 12px;
    }
    
    .booking-compact .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .success-panel {
        padding: 30px 15px;
    }
    
    .success-icon i {
        font-size: 50px;
    }
    
    .success-panel h3 {
        font-size: 20px;
    }
    
    .success-panel p {
        font-size: 13px;
    }
}