/* Main Container */
.gobox-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Progress Bar */
.gobox-progress-bar {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step {
    margin: 0 10px;
    color: #999;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding-bottom: 5px;
}

.step.active {
    color: #e72b22;
    border-bottom: 2px solid #e72b22;
}

/* Layout Grid */
.gobox-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* Main Content */
.gobox-main-content {
    padding: 20px;
}

/* Headings */
.step-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.step-subtitle {
     font-size: 18px;
     color: #555;
     margin-bottom: 15px;
     border-bottom: 1px solid #eee;
     padding-bottom: 10px;
}

/* Steps - Toggle Visibility */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service Cards (Step 1) */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9f9f9;
}

.service-card:hover, .service-card.selected {
    border-color: #e72b22;
    background: #fff;
    box-shadow: 0 2px 8px rgba(231, 43, 34, 0.2);
}

.service-icon {
    font-size: 40px;
    color: #e72b22;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.service-card p {
    font-size: 13px;
    color: #666;
}

/* Size Cards (Step 2) */
.size-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.size-card {
    border: 1px solid #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.size-info h4 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #333;
}

.size-info p {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px;
}

.badge {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
    display: inline-block;
    margin-bottom: 10px;
}

.badge.red {
    background: #ffebeb;
    color: #e72b22;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 14px;
    height: 30px; 
    /* WP sometimes overrides input styles */
    margin: 0;
    padding: 0;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}


/* Duration (Step 3) */
.duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-card {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
}

.radio-card:hover {
    background: #fdfdfd;
}

.radio-card input {
    margin-right: 8px;
}

/* Delivery (Step 4) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Estimate (Step 5) */
.estimate-breakdown {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 5px;
    font-weight: bold;
    font-size: 16px;
    color: #e72b22;
}

/* Nav Buttons */
.gobox-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    transition: background 0.2s;
}

.nav-btn.primary {
    background: #e72b22;
    color: #fff;
}

.nav-btn.primary:hover {
    background: #d6251c;
}

.nav-btn.secondary {
    background: #ddd;
    color: #333;
}

.nav-btn.secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Right Sidebar */
.gobox-sidebar {
    background: #fafafa;
    border-left: 1px solid #eee;
    padding: 20px;
}

.summary-box h3 {
    font-size: 16px;
    border-bottom: 2px solid #e72b22;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-item {
    font-size: 13px;
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
}

.summary-item i {
    color: #28a745;
    margin-right: 8px;
    font-size: 12px;
    opacity: 0; /* Hidden by default until step complete */
}

.summary-item.completed i {
    opacity: 1;
}

.summary-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.sidebar-cta {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.sidebar-cta:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .gobox-layout {
        grid-template-columns: 1fr;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
}
