/* Basic styles for Presupuesto Online */
.presupuesto-online-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    font-family: inherit;
    /* Inherit font from theme */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Service Selector Tabs */
.po-service-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.po-service-btn {
    padding: 10px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.po-service-btn:hover {
    background: #e0e0e0;
}

.po-service-btn.active {
    background: #0073aa;
    /* Fallback color */
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Service Sections */
.po-service-section {
    display: none;
    /* Hide by default */
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    background: #fdfdfd;
}

.po-service-section.active {
    display: block;
    /* Show active */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Radio button labels inline */
.form-group label:has(input[type="radio"]) {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
    cursor: pointer;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Total Section (Modified for Sticky) */
.po-total-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    /* Animation slide up */
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.po-total-section {
    text-align: center;
    max-width: 800px;
    /* Center with main container */
    margin: 0 auto;
    padding: 10px;
    background: #f0f7fb;
    border-left: 5px solid #0073aa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.po-total-section h3 {
    margin: 0;
    color: #0073aa;
    font-size: 1.4em;
}

.po-disclaimer {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    max-width: 50%;
    text-align: right;
}

/* Responsive Sticky Total */
@media (max-width: 600px) {
    .po-total-section {
        flex-direction: column;
        text-align: center;
    }

    .po-disclaimer {
        max-width: 100%;
        text-align: center;
        margin-top: 5px;
    }
}

/* Contact Gate */
.po-contact-section {
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-top: 4px solid #444;
    margin-bottom: 80px;
    /* Space for Sticky Footer */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.po-contact-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Buttons */
.po-actions {
    text-align: center;
    margin-top: 20px;
}

button#po-submit-btn {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

button#po-submit-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

button#po-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(33, 136, 56, 0.3);
}

.po-privacy-notice {
    margin-top: 15px;
    color: #777;
    font-size: 0.9em;
}

/* Checkbox Style */
.form-group-checkbox {
    margin-bottom: 20px;
    font-size: 1em;
}

.form-group-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    vertical-align: middle;
}