/* Dynamic Pricing Container */
.dynamic-pricing-container {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    position: relative;
}

/* Pricing Form Introduction - Tooltip Style */
.pricing-form-intro {
    background: linear-gradient(135deg, #e6ebe5 0%, #fff 100%);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
}

/* Tooltip Arrow pointing down to form */
.pricing-form-intro::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e6ebe5;
}

.pricing-intro-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.pricing-intro-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Starting From Label for Price */
.starting-from-label {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic Pricing Container */
.dynamic-pricing-container {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

/* Pricing Steps */
.pricing-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* Step Header (for steps 2 and 3) */
.step-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.edit-link {
    display: inline-block;
    margin-right: 15px;
    color: #28a745;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.edit-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.edit-link small {
    color: #007bff;
    font-size: 12px;
    margin-left: 5px;
}

/* Form Labels */
.pricing-step label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Input and Select Styling */
#zip-code-input,
#tonnage-select,
#days-select {
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

#zip-code-input:focus,
#tonnage-select:focus,
#days-select:focus {
    outline: none;
    border-color: #ff8c00;
}

/* Step Button */
.step-button {
    background: #ff8c00;
    font-style: italic;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.step-button:hover {
    background: #e67e00;
    transform: translateY(-2px);
}

.step-button:active {
    transform: translateY(0);
}

/* Error Messages */
.error-message {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #ffe6e6;
    border-left: 3px solid #dc3545;
    border-radius: 3px;
}

/* Price Display */
.price-display {
    background: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.price-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Dumpster Info Grid (dimension display) */
.dumpster-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.info-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.info-icon {
    font-size: 24px;
    color: #ff8c00;
    margin-bottom: 10px;
}

.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* Add to Cart Button Disabled State */
.single_add_to_cart_button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Rental Accordions */
.rental-accordions {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-header.active {
    background: #ff8c00;
    color: white;
}

.accordion-title {
    font-weight: 600;
    font-size: 15px;
}

.accordion-toggle {
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content.active {
    max-height: 500px;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dynamic-pricing-container {
        padding: 20px 15px;
    }
    
    .pricing-form-intro {
        padding: 18px 20px;
    }
    
    .pricing-form-intro::after {
        left: 30px;
    }
    
    #zip-code-input,
    #tonnage-select,
    #days-select {
        max-width: 100%;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .dumpster-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .edit-link {
        display: block;
        margin-bottom: 5px;
    }
}