:root {
    --mibox-yellow: #FFDD00;
    --mibox-dark: #333333;
    --mibox-blue: #007ABD;
    --mibox-gray: #f8f9fa;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--mibox-dark);
}

/* Top Bar */
.top-bar {
    background: var(--mibox-dark);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}
.top-bar a {
    color: var(--mibox-yellow);
    text-decoration: none;
}
.top-bar a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand img {
    max-height: 50px;
}
.nav-link {
    color: var(--mibox-dark) !important;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--mibox-blue) !important;
}
.btn-mibox {
    background: var(--mibox-yellow);
    color: var(--mibox-dark);
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
}
.btn-mibox:hover {
    background: #e6c700;
    color: var(--mibox-dark);
}
.btn-mibox:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Mobile touch improvements */
.btn-mibox {
    -webkit-tap-highlight-color: rgba(255, 221, 0, 0.3);
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure adequate touch target on mobile */
@media (max-width: 768px) {
    .btn-mibox.btn-lg,
    #submitBooking {
        min-height: 50px;
        padding: 14px 24px;
        font-size: 1.1rem;
    }
}
.btn-mibox-outline {
    border: 2px solid var(--mibox-yellow);
    color: var(--mibox-dark);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    background: transparent;
}
.btn-mibox-outline:hover {
    background: var(--mibox-yellow);
    color: var(--mibox-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('hero-houston.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
    color: white;
    padding-bottom: 40px;
}
.hero-section .row {
    align-items: flex-start !important;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.hero-badges .badge {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 500;
    padding: 8px 14px;
    margin: 4px;
    font-size: 0.9rem;
}

/* Quote Calculator */
.quote-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
}
.quote-card h3 {
    color: var(--mibox-dark);
    font-weight: 700;
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: 600;
    color: var(--mibox-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mibox-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255,221,0,0.25);
}

/* Service Type Cards */
.service-cards {
    display: flex;
    gap: 12px;
}

.service-card {
    flex: 1;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: #ccc;
    background: #e8e8e8;
}

.service-card.selected {
    background: white;
    border-color: var(--mibox-yellow);
    box-shadow: 0 0 0 3px rgba(255, 221, 0, 0.25);
}

.service-cards.is-invalid .service-card {
    border-color: #dc3545;
}

.service-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.service-card-icon svg {
    width: 48px;
    height: 48px;
}

.service-card-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--mibox-dark);
    margin-bottom: 4px;
}

.service-card-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .service-cards {
        flex-direction: column;
    }

    .service-card {
        padding: 16px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .service-card-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .service-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .service-card-text {
        flex: 1;
    }

    .service-card-label {
        font-size: 15px;
    }

    .service-card-subtitle {
        font-size: 11px;
    }
}

/* SMS Consent Checkbox */
#smsConsent {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-right: 10px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    flex-shrink: 0;
}

#smsConsent:checked {
    background-color: var(--mibox-yellow);
    border-color: var(--mibox-yellow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23333333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 10l4 4 8-8'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

#smsConsent:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 221, 0, 0.3);
}

#smsConsent.is-invalid {
    border-color: #dc3545;
}

.sms-consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sms-consent-wrapper label {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.sms-consent-wrapper label a {
    color: var(--mibox-blue);
}

/* Quote Results */
.quote-results {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}
.quote-results.show {
    display: block;
}
.price-box {
    background: var(--mibox-gray);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}
.price-box.highlight {
    background: var(--mibox-yellow);
}
.price-box h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.price-box .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mibox-dark);
}
.price-box .breakdown {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
    margin-top: 10px;
    color: #555;
}
.price-box.highlight .breakdown {
    border-top-color: rgba(0,0,0,0.15);
}
.price-box .breakdown div {
    padding: 2px 0;
}

/* Booking Form */
.booking-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--mibox-yellow);
}
.booking-form.show {
    display: block;
}

/* Trust/Social Proof Section */
.trust-section {
    padding: 50px 0;
    background: var(--mibox-gray);
}

.trust-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mibox-dark);
    margin-bottom: 15px;
}

.trust-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

.trust-star {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .trust-section h2 {
        font-size: 1.4rem;
    }

    .trust-text {
        font-size: 1rem;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--mibox-gray);
}
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--mibox-yellow);
    margin-bottom: 15px;
}
.feature-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Photo Feature Section */
.photo-features {
    padding: 80px 0;
}
.photo-feature-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Testimonial */
.testimonial-section {
    background: var(--mibox-dark);
    color: white;
    padding: 60px 0;
}
.testimonial-section .stars {
    color: var(--mibox-yellow);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.testimonial-section blockquote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
}
.step-card {
    text-align: center;
    padding: 30px;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--mibox-yellow);
    color: var(--mibox-dark);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Why Rent With Us */
.why-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('yard-overhead.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}
.why-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.2);
}
.why-card i {
    font-size: 2.5rem;
    color: var(--mibox-yellow);
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--mibox-yellow);
}
.cta-section h2 {
    color: var(--mibox-dark);
    font-weight: 700;
}
.btn-dark-mibox {
    background: var(--mibox-dark);
    color: white;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
}
.btn-dark-mibox:hover {
    background: #222;
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}
.accordion-button:not(.collapsed) {
    background: var(--mibox-yellow);
    color: var(--mibox-dark);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,221,0,0.25);
}

/* Footer */
footer {
    background: var(--mibox-dark);
    color: white;
    padding: 50px 0 20px;
}
footer h5 {
    color: var(--mibox-yellow);
    font-weight: 600;
    margin-bottom: 20px;
}
footer a {
    color: #ccc;
    text-decoration: none;
}
footer a:hover {
    color: var(--mibox-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 30px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .quote-card {
        padding: 20px;
    }
}

/* Success message */
.booking-success {
    display: none;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.booking-success.show {
    display: block;
}

/* Loading spinner */
.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Multi-Step Wizard Styles
   ======================================== */

/* Progress Indicator */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.wizard-step.active .step-circle,
.wizard-step.completed .step-circle {
    background: var(--mibox-yellow);
    color: var(--mibox-dark);
    border-color: var(--mibox-yellow);
}

.wizard-step.completed .step-circle {
    background: var(--mibox-dark);
    color: var(--mibox-yellow);
    border-color: var(--mibox-dark);
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    color: var(--mibox-dark);
}

/* Wizard Panels */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mibox-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mibox-yellow);
}

/* Wizard Buttons */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wizard-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
}

.wizard-buttons .btn-outline-secondary {
    border-color: #ccc;
    color: #666;
}

.wizard-buttons .btn-outline-secondary:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #333;
}

/* Quote Summary Info */
.quote-summary-info {
    background: var(--mibox-gray);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e5e5e5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
    font-size: 0.85rem;
}

.summary-value {
    font-weight: 600;
    color: var(--mibox-dark);
    font-size: 0.85rem;
}

/* Pricing Breakdown Boxes */
.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.pricing-breakdown .price-box {
    background: var(--mibox-gray);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 0;
}

.pricing-breakdown .price-box.highlight {
    background: var(--mibox-yellow);
}

.price-box-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.price-box.highlight .price-box-header {
    color: var(--mibox-dark);
}

.price-box-header i {
    margin-right: 5px;
}

.price-box-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mibox-dark);
    margin-bottom: 8px;
}

.price-box-details {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 8px;
}

.price-box.highlight .price-box-details {
    border-top-color: rgba(0,0,0,0.15);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    padding: 2px 0;
}

.price-box.highlight .detail-row {
    color: var(--mibox-dark);
}

/* Turnstile Wrapper */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    min-height: 65px;
}

.cf-turnstile {
    margin: 0 auto;
}

/* Success State */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mibox-dark);
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 25px;
}

.success-contact {
    background: var(--mibox-gray);
    border-radius: 8px;
    padding: 20px;
}

.success-contact p {
    margin-bottom: 10px;
    color: #555;
}

/* Door facing options */
.door-options {
    background: var(--mibox-gray);
    padding: 12px 15px;
    border-radius: 8px;
}

.door-options .form-check-inline {
    margin-right: 20px;
}

.door-options .form-check-label {
    color: var(--mibox-dark);
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .wizard-progress {
        padding: 0;
    }

    .wizard-progress::before {
        left: 20px;
        right: 20px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .wizard-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .wizard-buttons .btn {
        width: 100%;
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Ensure submit button is tappable on mobile */
    #submitBooking {
        display: inline-block;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 221, 0, 0.5);
    }

    .pricing-breakdown .price-box {
        padding: 10px 12px;
    }

    .price-box-total {
        font-size: 1.2rem;
    }

    .door-options .form-check-inline {
        display: block;
        margin-bottom: 8px;
    }
}
