/**
 * Public CSS for the Moving Cost Calculator plugin.
 *
 * @link       https://example.com
 * @since      1.0.0
 *
 * @package    Moving_Cost_Calculator
 */

/* Container */
.moving-cost-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Steps */
.mcc-step {
    display: none;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.mcc-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Form Elements */
.mcc-form-group {
    margin-bottom: 15px;
}

.mcc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mcc-form-group input,
.mcc-form-group select,
.mcc-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mcc-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Buttons */
.mcc-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mcc-button:hover {
    background-color: #005177;
    color: #fff;
}

.mcc-button-secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.mcc-button-secondary:hover {
    background-color: #eee;
    color: #333;
}

/* Map */
#mcc-map-container {
    margin-top: 20px;
    margin-bottom: 30px;
    display: block;
}

#mcc-map {
    height: 300px;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mcc-map-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* Room Tabs */
.mcc-room-tabs-wrapper {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.mcc-room-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 5px;
}

.mcc-room-tab {
    padding: 10px 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    flex: 0 0 auto;
    display: inline-block;
}

.mcc-room-tab.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: 600;
}

.mcc-room-tab.mcc-hidden {
    display: none;
}

.mcc-room-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 5px 0;
}

.mcc-room-pagination button {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
}

.mcc-room-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mcc-room-page-info {
    font-size: 14px;
    margin: 0 10px;
}

.mcc-room-content {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.mcc-room-items {
    display: none;
}

.mcc-room-items.active {
    display: block;
}

/* Items Table */
.mcc-items-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

/* Items Container */
.mcc-items-container {
    margin-bottom: 20px;
}

.mcc-items-show-more {
    margin-top: 15px;
    text-align: center;
}

.mcc-show-more-btn,
.mcc-show-less-btn {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.mcc-show-more-btn:hover,
.mcc-show-less-btn:hover {
    background: #eee;
}

/* Quantity Controls */
.mcc-quantity-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mcc-quantity-decrease,
.mcc-quantity-increase {
    width: 30px;
    height: 30px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}

.mcc-quantity-input {
    width: 50px !important;
    text-align: center;
    margin: 0 5px;
    padding: 5px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* Mobile Specific Styles */
@media (max-width: 600px) {
    .mcc-items-table th:nth-child(2),
    .mcc-items-table td:nth-child(2) {
        display: none; /* Hide cubic feet column on mobile */
    }
    
    .mcc-quantity-control {
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .mcc-quantity-input {
        width: 40px !important;
        padding: 5px 2px !important;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
        z-index: 1;
    }
    
    .mcc-quantity-decrease,
    .mcc-quantity-increase {
        width: 36px;
        height: 36px;
        z-index: 2;
        background-color: #ffcc00;
        color: #333;
        font-size: 18px;
    }
}

/* Volume Summary */
.mcc-volume-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 4px;
}

.mcc-volume-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Services */
.mcc-services-container {
    margin-bottom: 20px;
}

.mcc-services-list,
.mcc-services-hidden {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.mcc-service-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
}

.mcc-service-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mcc-service-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.mcc-service-name {
    font-weight: 600;
    margin-right: 10px;
}

.mcc-service-fee {
    color: #0073aa;
    font-weight: 600;
}

.mcc-service-description {
    font-size: 13px;
    color: #666;
}

.mcc-services-pagination {
    text-align: center;
    margin-top: 15px;
}

.mcc-services-show-more,
.mcc-services-show-less {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.mcc-services-show-more:hover,
.mcc-services-show-less:hover {
    background: #eee;
}

/* Mobile Specific Styles for Services */
@media (max-width: 600px) {
    .mcc-services-list,
    .mcc-services-hidden {
        grid-template-columns: 1fr;
        max-height: 400px;
        overflow-y: auto;
    }
}

/* User Form */
.mcc-user-form {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Notices */
.mcc-notice {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 12px;
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
}

/* Cost Breakdown */
.mcc-cost-breakdown {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.mcc-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mcc-cost-label {
    font-weight: 600;
}

.mcc-cost-total {
    font-size: 1.2em;
    font-weight: 700;
    color: #0073aa;
    border-bottom: none;
    padding-top: 15px;
}

/* Booking Section */
.mcc-booking-section {
    text-align: center;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .mcc-form-actions {
        flex-direction: column;
    }
    
    .mcc-form-actions button {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .mcc-room-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .mcc-room-tab {
        margin-right: 5px;
        margin-bottom: 5px;
        border: 1px solid #ddd;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .mcc-room-tab.active {
        border-bottom: 1px solid #fff;
    }
    
    .mcc-services-container {
        grid-template-columns: 1fr;
    }
}
