.dt24-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 2rem auto;
}

.dt24-calculator-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.dt24-calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.dt24-calculator-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.dt24-calculator-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.dt24-form-group {
    display: flex;
    flex-direction: column;
}

.dt24-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dt24-form-group .dt24-input,
.dt24-form-group .dt24-select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt24-form-group .dt24-input:focus,
.dt24-form-group .dt24-select:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.dt24-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dt24-select-wrapper img.dt24-flag {
    position: absolute;
    left: 10px;
    width: 24px;
    height: auto;
    border-radius: 3px;
}

.dt24-select-wrapper .dt24-select {
    padding-left: 45px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.dt24-radio-group {
    display: flex;
    gap: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #fff;
}

.dt24-radio-option {
    flex: 1;
}

.dt24-radio-option input {
    display: none;
}

.dt24-radio-option label {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 0;
}

.dt24-radio-option input:checked+label {
    background-color: #ff6600;
    color: white;
}

.dt24-dimension-group {
    display: flex;
    gap: 1rem;
}

.dt24-dimension-group .dt24-form-group {
    flex: 1;
}

.dt24-dimension-group .dt24-form-group label {
    margin-bottom: 0.5rem;
    /* Less space for sub-labels */
}

.dt24-full-width {
    grid-column: 1 / -1;
}

.dt24-calculator-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.dt24-btn-next {
    background: linear-gradient(135deg, #ff8533 0%, #ff6600 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt24-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 102, 0, 0.3);
}

@media (max-width: 768px) {
    .dt24-calculator-form-grid {
        grid-template-columns: 1fr;
    }

    .dt24-calculator-container {
        padding: 1.5rem;
    }

    .dt24-calculator-header h2 {
        font-size: 1.8rem;
    }
}

.dt24-stepper {
    display: none;
}

.dt24-stepper.active {
    display: block;
}

.dt24-stepper.hidden {
    display: none;

}


/* Calculation summary styles */
.dt24-result-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Grids Principales */
.dt24-top-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dt24-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Cabeceras de Card */
.dt24-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    line-height: 60%;
}

.dt24-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Acciones: Switch y Botón */
.dt24-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dt24-currency-switch {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

/* Toggle Switch */
.dt24-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin: 0 8px;
}

.dt24-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dt24-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.dt24-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.dt24-slider {
    background-color: #ff6600;
}

input:checked+.dt24-slider:before {
    transform: translateX(18px);
}

/* Botón Volver */
.dt24-btn-secondary {
    /*background: #fff;*/
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 2;

}

.dt24-btn-secondary:hover {
    /* background: #f0f0f0;*/
}

/* Card de Total (Verde) */
.dt24-total-card {
    background: #28a745;
    color: white;
    text-align: center;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dt24-total-card h4 {
    color: #fff;
}

.dt24-total-card h2 {
    font-size: 3.5rem;
    margin: 5px 0;
    color: #fff;
}

/* Resumen del Paquete Grid */
.dt24-grid-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.dt24-highlight-box {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}

.dt24-big {
    font-size: 1.4rem;
    color: #856404;
}

.dt24-flex-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Footer Info */
.dt24-info-footer {
    margin-top: 25px;
    padding: 15px;
    background: #eef2f7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dt24-info-footer ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

/* Responsive */
@media (max-width: 850px) {

    .dt24-top-row,
    .dt24-grid-details {
        grid-template-columns: 1fr;
    }

    .dt24-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dt24-header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

/* Clase de error para inputs y selects */
.dt24-error {
    border-color: #d63638 !important;
    /* Rojo estándar de WordPress para errores */
    background-color: #fffcfc !important;
    box-shadow: 0 0 0 1px #d63638 !important;
    outline: none !important;
    transition: all 0.3s ease;
}

/* Animación de sacudida */
@keyframes dt24Shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.dt24-error-shake {
    animation: dt24Shake 0.2s ease-in-out 0s 2;
}

/* Opcional: Estilo para un mensaje de error debajo del campo */
.dt24-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}