/**
 * Frontend Styles
 * Cotizador Envios Solupack
 */

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cef-cotizador-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.cef-cotizador-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.cef-title {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Progress Bar */
.cef-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.cef-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.cef-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cef-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #ddd;
}

.cef-step-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s;
    border: 2px solid #00a32a;
}

.cef-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

.cef-progress-step.active .cef-step-number {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    transform: scale(1.1);
    display: flex;
}

.cef-progress-step.active .cef-step-check {
    display: none;
}

.cef-progress-step.active .cef-step-label {
    color: #2271b1;
    font-weight: 600;
}

.cef-progress-step.completed .cef-step-number {
    display: none;
}

.cef-progress-step.completed .cef-step-check {
    display: flex;
}

@media (max-width: 768px) {
    .cef-step-label {
        font-size: 10px;
        max-width: 80px;
    }
    
    .cef-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .cef-progress-bar {
        padding: 0 10px;
    }
}

/* Step Content */
.cef-step-content {
    display: none;
    animation: fadeIn 0.3s;
}

.cef-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cef-step-title {
    font-size: 22px;
    font-weight: 600;
    color: #2271b1;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

/* Service Type Cards */
.cef-service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cef-service-card {
    position: relative;
    cursor: pointer;
}

.cef-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cef-service-card-content {
    position: relative;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cef-service-card:hover .cef-service-card-content {
    border-color: #2271b1;
    background: #f8f9fa;
}

.cef-service-card input[type="radio"]:checked + .cef-service-card-content {
    border-color: #2271b1;
    background: #e7f3ff;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.cef-service-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 0;
    line-height: 1.3;
}

.cef-service-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* Ícono de información */
.cef-service-info-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: help;
    z-index: 20;
}

.cef-service-info-icon svg {
    color: #666;
    transition: color 0.3s;
}

.cef-service-info-icon:hover svg {
    color: #2271b1;
}

/* Tooltip informativo */
.cef-service-info-tooltip {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 10px;
    width: 280px;
    background: #1d2327;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transform-origin: top right;
    transition: all 0.3s ease;
    z-index: 100;
}

.cef-service-info-tooltip::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 100%;
    border: 8px solid transparent;
    border-left-color: #1d2327;
}

.cef-service-info-tooltip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.cef-service-info-icon:hover .cef-service-info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Responsive: En pantallas pequeñas, mostrar tooltip arriba */
@media (max-width: 768px) {
    .cef-service-info-tooltip {
        top: 100%;
        right: 0;
        left: auto;
        margin-right: 0;
        margin-top: 10px;
        transform-origin: top right;
        width: 250px;
    }
    
    .cef-service-info-tooltip::after {
        top: -16px;
        left: auto;
        right: 10px;
        border: 8px solid transparent;
        border-bottom-color: #1d2327;
        border-left-color: transparent;
    }
}

/* Summary Section */
.cef-summary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cef-summary-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.cef-summary-card h4 {
    margin: 0 0 15px 0;
    color: #2271b1;
    font-size: 18px;
}

.cef-summary-content {
    display: grid;
    gap: 12px;
}

.cef-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cef-summary-item:last-child {
    border-bottom: none;
}

.cef-summary-label {
    font-weight: 500;
    color: #666;
}

.cef-summary-value {
    color: #333;
    font-weight: 500;
}

.cef-summary-legend {
    font-size: 11px;
    color: #999;
    margin: 5px 0;
    line-height: 1.4;
}

/* Navigation Buttons */
.cef-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Ocultar botón siguiente cuando el paso 1 está activo */
.cef-step-content[data-step="1"].active ~ .cef-form-navigation .cef-btn-next {
    display: none;
}

@media (max-width: 768px) {
    .cef-form-navigation {
        flex-direction: column;
    }
    
    .cef-form-navigation button {
        width: 100%;
    }
}

.cef-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cef-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .cef-form-row {
        grid-template-columns: 1fr;
    }
}

.cef-form-group {
    display: flex;
    flex-direction: column;
}

.cef-form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.cef-form-group .required {
    color: #e74c3c;
}

.cef-form-group input[type="text"],
.cef-form-group input[type="email"],
.cef-form-group input[type="tel"],
.cef-form-group input[type="number"],
.cef-form-group input[type="time"],
.cef-form-group input[type="date"],
.cef-form-group select,
.cef-form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    width: 100%;
}

/* Asegurar que los inputs de fecha y hora sean completamente clicables */
.cef-form-group input[type="date"],
.cef-form-group input[type="time"] {
    cursor: pointer;
    position: relative;
}

/* Asegurar que el calendario/reloj se abra al hacer clic en cualquier parte del input */
.cef-form-group input[type="date"]::-webkit-calendar-picker-indicator,
.cef-form-group input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.cef-form-group select {
    cursor: pointer;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cef-form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.cef-form-group input:focus,
.cef-form-group select:focus,
.cef-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.cef-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cef-location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .cef-location-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.cef-location-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cef-location-title {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.cef-subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
}

.cef-client-info-section {
    margin-bottom: 30px;
}

.cef-service-fields {
    margin-top: 20px;
}

/* Radio Group */
.cef-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.cef-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.cef-radio-option:hover {
    border-color: #2271b1;
    background: #f0f8ff;
}

.cef-radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.cef-radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2271b1;
}

.cef-radio-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #f0f8ff;
}

@media (max-width: 768px) {
    .cef-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Delivery and Pickup Sections */
.cef-delivery-section,
.cef-pickup-section {
    margin-top: 25px;
}

/* Alert Box */
.cef-alert {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.cef-alert-info {
    background: #e7f5ff;
    border: 1px solid #0ea5e9;
}

.cef-alert-warning {
    background: #fff8e1;
    border: 1px solid #ffc107;
}

.cef-alert-success {
    background: #e7f5e7;
    border: 1px solid #4caf50;
}

.cef-alert-danger {
    background: #ffe6e6;
    border: 1px solid #dc3545;
}

.cef-alert-danger ul {
    list-style-type: none;
    padding-left: 0;
}

.cef-alert-danger ul li {
    padding-left: 5px;
    margin-bottom: 8px;
    color: #721c24;
}

.cef-alert-danger ul li strong {
    color: #dc3545;
}

#cef-urgencia-limit-warning .cef-btn-secondary {
    transition: all 0.3s ease;
}

#cef-urgencia-limit-warning .cef-btn-secondary:hover:not(:disabled) {
    background-color: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#cef-urgencia-limit-warning .cef-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cef-alert-warning ul {
    list-style-type: none;
    padding-left: 0;
}

.cef-alert-warning ul li {
    padding-left: 5px;
    margin-bottom: 8px;
    color: #856404;
}

.cef-alert-warning ul li strong {
    color: #d39e00;
}

.cef-alert-icon {
    font-size: 24px;
    line-height: 1;
}

.cef-alert-content {
    flex: 1;
}

.cef-alert-content strong {
    display: block;
    color: #333;
}

.cef-alert-content ul {
    margin: 0;
    padding-left: 20px;
}

.cef-alert-content li {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.cef-alert-content li strong {
    display: inline;
    color: #000;
}

/* Dimensions */
.cef-dimensions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: start;
}

.cef-dimensions-row .cef-form-group {
    display: flex;
    flex-direction: column;
}

.cef-dimensions-row .cef-form-group label {
    margin-top: 0;
}

.cef-dimension-sum {
    background: #f0f0f1;
    border: 2px solid #2271b1;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    text-align: center;
}

/* Checkbox */
.cef-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.cef-checkbox-label:hover {
    border-color: #2271b1;
    background: #f0f8ff;
}

.cef-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cef-checkbox-label span {
    font-weight: 500;
    color: #333;
}

.cef-result-container {
    background: #f0f8ff;
    border: 2px solid #2271b1;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.cef-result-content {
    color: #333;
}

.cef-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    margin: 0 0 15px 0;
}

.cef-result-cost {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 10px 0;
}

.cef-result-breakdown {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #d0e7f9;
}

.cef-result-breakdown h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #666;
}

.cef-result-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cef-result-breakdown li {
    padding: 5px 0;
    font-size: 14px;
    color: #555;
}

.cef-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cef-form-actions {
        flex-direction: column;
    }
}

.cef-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-family: inherit;
}

.cef-button:hover {
    transform: translateY(-1px);
}

.cef-button:active {
    transform: translateY(0);
}

.cef-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.cef-button-primary {
    background-color: #2271b1;
    color: #fff;
}

.cef-button-primary:hover:not(:disabled) {
    background-color: #135e96;
}

.cef-button-secondary {
    background-color: #f0f0f1;
    color: #2c3338;
}

.cef-button-secondary:hover:not(:disabled) {
    background-color: #dcdcde;
}

.cef-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
}

.cef-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cef-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cef-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading state */
.cef-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.cef-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cef-spin 0.6s linear infinite;
}

@keyframes cef-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar - Checkmark */
.cef-step-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a32a;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s;
    border: 2px solid #00a32a;
}

.cef-progress-step.active .cef-step-number {
    display: flex;
}

.cef-progress-step.active .cef-step-check {
    display: none;
}

.cef-progress-step.completed .cef-step-number {
    display: none;
}

.cef-progress-step.completed .cef-step-check {
    display: flex;
}

/* Alert Info */
.cef-alert-info {
    background: #e7f5ff;
    border: 1px solid #0ea5e9;
}

/* Dimensions */
.cef-dimensions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.cef-dimension-sum {
    background: #f0f0f1;
    border: 2px solid #2271b1;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    text-align: center;
    margin-top: 10px;
}

/* Step 3 - Mercadería Improvements */
.cef-bultos-peso-row {
    margin-bottom: 25px;
}

.cef-bultos-peso-row .cef-bultos-field,
.cef-bultos-peso-row .cef-peso-field {
    max-width: 100%;
    margin-bottom: 0;
}

.cef-dimensions-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
}

.cef-dimensions-section .cef-subsection-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2271b1;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.cef-dimension-total {
    margin-top: 20px;
    max-width: 400px;
}

.cef-dimension-total label {
    font-size: 15px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 10px;
}

.cef-step-content[data-step="3"] .cef-alert {
    margin: 25px 0;
}

.cef-step-content[data-step="3"] .cef-alert:first-of-type {
    margin-top: 0;
}

/* Checkbox */
.cef-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    height: 100%;
}

.cef-checkbox-label:hover {
    border-color: #2271b1;
    background: #f0f8ff;
}

.cef-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.cef-checkbox-label span {
    font-weight: 500;
    color: #333;
}

@media (max-width: 768px) {
    .cef-dimensions-row {
        grid-template-columns: 1fr;
    }
    
    .cef-bultos-peso-row {
        grid-template-columns: 1fr;
    }
    
    .cef-bultos-field,
    .cef-peso-field,
    .cef-dimension-total {
        max-width: 100%;
    }
    
    .cef-dimensions-section {
        padding: 20px 15px;
    }
}

/* Step 4 - Desglose de Costos */
.cef-cost-breakdown {
    background: #f0f8ff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.cef-cost-breakdown h4 {
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cef-cost-content {
    display: grid;
    gap: 10px;
}

.cef-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.cef-cost-item:last-child {
    border-bottom: none;
}

.cef-cost-item.total {
    border-top: 2px solid #2271b1;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #2271b1;
}

.cef-cost-label {
    font-weight: 500;
    color: #333;
}

.cef-cost-value {
    font-weight: 600;
    color: #2271b1;
}

/* Service Conditions */
.cef-service-conditions,
.cef-service-includes {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.cef-service-conditions h4,
.cef-service-includes h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cef-conditions-list,
.cef-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cef-conditions-list li,
.cef-includes-list li {
    padding: 6px 0;
    line-height: 1.6;
    color: #333;
}

.cef-includes-list li {
    padding-left: 20px;
    position: relative;
}

.cef-includes-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #2271b1;
    font-weight: bold;
}

/* Terms Label */
.cef-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cef-terms-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.cef-terms-label span {
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}


/* Step 4 - Desglose de Costos */
.cef-cost-breakdown {
    background: #f0f8ff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.cef-cost-breakdown h4 {
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cef-cost-content {
    display: grid;
    gap: 10px;
}

.cef-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.cef-cost-item:last-child {
    border-bottom: none;
}

.cef-cost-item.total {
    border-top: 2px solid #2271b1;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #2271b1;
}

.cef-cost-label {
    font-weight: 500;
    color: #333;
}

.cef-cost-value {
    font-weight: 600;
    color: #2271b1;
}

/* Service Conditions */
.cef-service-conditions,
.cef-service-includes {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.cef-service-conditions h4,
.cef-service-includes h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cef-conditions-list,
.cef-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cef-conditions-list li,
.cef-includes-list li {
    padding: 6px 0;
    line-height: 1.6;
    color: #333;
}

.cef-conditions-list li {
    padding-left: 25px;
    position: relative;
}

.cef-includes-list li {
    padding-left: 20px;
}

.cef-includes-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #2271b1;
    font-weight: bold;
}

/* Terms Label */
.cef-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cef-terms-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.cef-terms-label span {
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.cef-client-info-section {
    margin-top: 30px;
}

.cef-client-info-card {
    background: #ffffff;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.cef-client-info-card .cef-subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: #2e7d32;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.cef-client-info-card .cef-title-icon {
    font-size: 24px;
}

.cef-client-info-card .cef-form-row {
    margin-bottom: 15px;
}

.cef-client-info-card .cef-form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.cef-client-info-card input[type="text"],
.cef-client-info-card input[type="email"],
.cef-client-info-card input[type="tel"] {
    border: 1px solid #c8e6c9;
    transition: all 0.3s;
}

.cef-client-info-card input[type="text"]:focus,
.cef-client-info-card input[type="email"]:focus,
.cef-client-info-card input[type="tel"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.cef-client-info-card .cef-terms-label {
    border-radius: 8px;
}

/* Acordeón de Información del Servicio */
.cef-service-accordion-container {
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cef-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.cef-accordion-item:last-child {
    border-bottom: none;
}

.cef-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.cef-accordion-header:hover {
    background: #ebebeb;
}

.cef-accordion-header.active {
    background: #e3f2fd;
    color: #2271b1;
}

.cef-accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cef-accordion-header.active .cef-accordion-title {
    color: #2271b1;
}

.cef-accordion-icon {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.cef-accordion-header.active .cef-accordion-icon {
    transform: rotate(180deg);
    color: #2271b1;
}

.cef-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.cef-accordion-content.active {
    max-height: 1000px;
}

.cef-accordion-content .cef-service-conditions,
.cef-accordion-content .cef-service-includes {
    padding: 20px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Modal Styles */
.cef-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cef-modal.active {
    opacity: 1;
    visibility: visible;
}

.cef-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cef-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease;
    z-index: 1;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cef-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 50% !important;
    padding: .5rem .7rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.cef-modal-close:hover {
    background: #1B7AB2;
    border-radius: 50%;
}

.cef-modal-close svg {
    width: 25px;
    height: 25px;
    color: #000;
    transition: all 0.3s ease;
    padding-top: 5px;
}

.cef-modal-close:hover svg {
    color: #fff;
}

.cef-modal-body {
    padding: 40px 30px 30px;
}

/* Ajustar el contenedor cuando está en modal */
.cef-modal-body .cef-cotizador-container {
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.cef-modal-body .cef-title {
    margin-bottom: 25px;
    font-size: 24px;
}

/* Prevenir scroll cuando el modal está abierto */
body.cef-modal-open {
    overflow: hidden;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .cef-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cef-modal-body {
        padding: 30px 20px 20px;
    }
    
    .cef-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    
    .cef-modal-close svg {
        width: 18px;
        height: 18px;
    }
}

/* Prevenir scroll del body cuando el modal está abierto */
body.cef-modal-open {
    overflow: hidden;
}
