:root {
    --font-family-encode-sans: "Encode Sans", Sans-serif, Arial, Helvetica, sans-serif;
    --text-color-primary: #0081A7 !important;
    --text-color-secondary: #969696 !important;
    --text-color-secondary-rgba: rgba(150, 150, 150, 0.4) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-encode-sans), sans-serif;
    color: var(--text-color-primary);
}

/* App Steps Styles */
.app-steps-container {
    margin: 0 auto;
    font-family: var(--font-family-encode-sans), sans-serif;
}

.text-color-primary {
    color: var(--text-color-primary);
}

.text-color-secondary {
    color: var(--text-color-secondary);
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.end-0 {
    right: 0 !important;
}

.top-0 {
    top: 0 !important;
}

.translate-middle {
    transform: translate(-50%, -50%);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.max-w-10 {
    max-width: 10% !important;
}

.max-w-25 {
    max-width: 25% !important;
}

.max-w-50 {
    max-width: 50% !important;
}

.max-w-75 {
    max-width: 75% !important;
}

.max-w-100 {
    max-width: 100% !important;
}


/* Progress Indicator Styles */
.app-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.app-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.app-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*background-color: #e0e0e0;*/
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 3px solid var(--text-color-primary);

    /* Efecto degradado */
    background: linear-gradient(135deg, #343a40 0%, rgba(255, 255, 255, 0) 50%), linear-gradient(315deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 50%), #0081A7;
    background-blend-mode: overlay;
}

.app-progress-step.active .app-progress-circle {
    background-color: var(--text-color-primary);
    color: white;
    border: 5px solid white;
    box-shadow: 0 0 0 2px var(--text-color-primary);
    transition: all 0.3s;
    /* border-color: var(--text-color-primary); */
}

.app-progress-step.completed .app-progress-circle {
    background-color: var(--text-color-primary);
    color: white;
    border-color: var(--text-color-primary);
}

.app-progress-label {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    text-align: center;
}

.app-progress-step.active .app-progress-label {
    color: var(--text-color-secondary);
}

.app-progress-step.completed .app-progress-label {
    color: var(--text-color-secondary);
    font-weight: 700;
}

.app-progress-line {
    flex: 1;
    top: -12px;
    margin: 20px -30px;
    height: 3px;
    background-color: #e0e0e0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.app-progress-line.active {
    background-color: var(--text-color-primary);
}

.app-progress-line.completed {
    background-color: var(--text-color-secondary);
}

/* Estilos para ocultar pasos */
.app-step-content.hidden {
    display: none;
}

/* Estilos para los pasos */
.app-step-content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-step-content h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

/* Grupos de formulario */
.app-form-group {
    margin-bottom: 20px;
}

.app-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.app-form-group select,
.app-form-group input {
    width: 100%;
    padding: 12px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.app-form-group select:focus,
.app-form-group input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

/* Estilos específicos para Flatpickr */
.app-date-picker {
    background-color: white;
    cursor: pointer;
}

.app-date-picker:read-only {
    background-color: white;
}

/* Grupo de tiempo inicialmente oculto */
.app-time-group.hidden {
    display: none;
}

/* Botones */
.app-step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.app-step-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.app-step-back {
    background-color: #6c757d;
    color: white;
}

.app-step-back:hover {
    background-color: #5a6268;
}

.app-step-next {
    background-color: #1e88e5;
    color: white;
}

.app-step-next:hover:not(:disabled) {
    background-color: var(--text-color-primary);
}

.app-step-next:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.app-step-confirm {
    background-color: #4caf50;
    color: white;
}

.app-step-confirm:hover {
    background-color: #45a049;
}

/* Resumen de cita */
.app-appointment-summary {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #1e88e5;
}

.app-appointment-summary p {
    margin: 8px 0;
    font-size: 16px;
}

.app-appointment-summary span {
    color: #1e88e5;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .app-steps-container {
        padding: 15px;
    }
    
    .app-step-content {
        padding: 20px;
    }
    
    .app-step-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-step-buttons button {
        width: 100%;
    }
}

.app-step-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 5px;
}

.app-step-indicator.active .app-step-title {
    color: #1e88e5;
    font-weight: bold;
}

.app-step-connector {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 20px;
    position: relative;
    top: -35px;
    z-index: 1;
}

.app-step-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-step-content h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.app-form-group {
    margin-bottom: 20px;
    position: relative;
}

.app-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e88e5;
    font-weight: 600;
    font-size: 16px;
}

.app-form-group select,
.app-form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 25px !important;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.app-form-group select:focus,
.app-form-group input:focus {
    outline: none;
    border-color: #1e88e5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.app-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e88e5;
    pointer-events: none;
    font-size: 12px;
}

.app-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.app-form-half {
    flex: 1;
}

.app-form-third {
    flex: 1;
}

.app-step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.app-step-back,
.app-step-next,
.app-step-confirm {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-step-back {
    background-color: #e0e0e0;
    color: #666;
    border: 2px solid #e0e0e0;
}

.app-step-back:hover {
    background-color: #d4d4d4;
    border-color: #d4d4d4;
}

.app-step-next,
.app-step-confirm,
.app-finish {
    background-color: var(--text-color-primary);
    color: white;
    border: 2px solid var(--text-color-primary);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

.app-step-next:hover,
.app-step-confirm:hover,
.app-finish:hover {
    background-color: var(--text-color-primary);
    border-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
}

.app-step-next:disabled,
.app-step-confirm:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.app-time-group {
    animation: slideDown 0.3s ease;
}

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.bell-notification {
    width: 38px;
    height: 38px;
    object-fit: cover;
}

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

.app-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f44336;
    margin-bottom: 20px;
}

.app-no-services {
    text-align: center;
    color: #666;
    padding: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Día disponible seleccionado en el input date */
.app-date-input.available {
    border-color: #4caf50 !important;
    background-color: #e8f5e9 !important;
    color: #388e3c !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* Día no disponible */
.app-date-input.unavailable {
    border-color: #f44336 !important;
    background-color: #ffebee !important;
    color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.10);
}

/* Responsive Design */
@media (max-width: 768px) {
    /*body.custom-background {
        background-size: auto 20% !important;
    }*/

    .app-steps-container {
        padding: 15px;
    }
    
    .app-step-content {
        padding: 20px;
    }
    
    .app-progress-indicator {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .app-progress-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .app-progress-label {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .app-progress-line {
        margin: 0 10px;
        height: 2px;
    }
    
    .app-step-connector {
        margin: 0 10px;
    }
    
    .app-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .app-step-buttons {
        flex-direction: column;
    }
    
    .app-step-indicator {
        flex-direction: row;
        align-items: center;
    }
    
    .app-step-title {
        margin-left: 10px;
        margin-top: 0;
    }
    
    .app-step-number {
        margin-bottom: 0;
    }
    
    .app-step-connector {
        top: -20px;
    }
}

@media (max-width: 480px) {
    .app-progress-indicator {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-progress-line {
        width: 2px;
        height: 20px;
        margin: 0;
    }
    
    .app-progress-step {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .app-progress-circle {
        margin: 0;
    }
    
    .app-progress-label {
        margin-top: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .app-steps-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .app-step-connector {
        display: none;
    }
    
    .app-step-indicator {
        flex-direction: row;
    }
}

/* Loading states */
.app-loading {
    opacity: 0.6;
    pointer-events: none;
}

.app-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1e88e5;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Debug styles for test buttons (when needed) */
.app-debug-button {
    background: #ff6b6b !important;
    color: white !important;
    padding: 10px 15px !important;
    border: none !important;
    border-radius: 5px !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

.app-debug-button:hover {
    background: #ff5252 !important;
}

/* Loading spinner */
.app-loading-spinner {
    text-align: center;
    padding: 40px;
    color: #1e88e5;
    font-size: 16px;
}

.app-loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #1e88e5;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

.fw-bold {
    font-weight: bold;
}

/* Confirmation Screen Styles */
/*.app-confirmation-screen {
    width: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: 20px;
}*/

.app-confirmation-screen.hidden {
    display: none !important;
}

/*.app-confirmation-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}*/

/* Logo Section */
.app-logo-section {
    margin-bottom: 30px;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: cadetblue;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-logo-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #1e88e5, #26c6da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-logo-main {
    font-size: 36px;
    font-weight: bold;
    color: #1e88e5;
    line-height: 1;
    text-transform: capitalize;
}

.app-logo-sub {
    font-size: 18px;
    color: #26c6da;
    font-weight: 500;
    line-height: 1;
    margin-top: -2px;
}

.underline {
    text-decoration: underline;
}

/* Success Message */
.app-success-message h2 {
    text-align: start;
    font-size: 30px;
    color: #0081A7;
    margin: 0;
    font-weight: 200;
    letter-spacing: 1px;
}

.app-success-message h3 {
    text-align: start;
    font-size: 32px;
    color: #0081A7;
    margin: 0 0 0 0;
    font-weight: 800;
    position: relative;
}

.app-success-message h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-80%);
    width: 305px;
    height: 3px;
    background: #26c6da;
}

/* Appointment Details */
.app-appointment-details {
    padding: 25px 25px 25px 0;
}

.app-appointment-details h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.app-detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.app-detail-label {
    font-weight: 600;
    min-width: 70px;
}

.app-detail-value {
    color: #6c757d;
    font-weight: 500;
}

/* Reminder Notice */
/*.app-reminder-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}*/

.border-start {
    border-left: 2px solid var(--text-color-secondary-rgba);
}

/*.app-reminder-notice::after {
    content: '';
    position: absolute;
    right: 32%;
    transform: translateY(-10%);
    width: 2px;
    height: 150px;
    background: var(--text-color-secondary-rgba);
}*/

.app-reminder-icon {
    font-size: 24px;
}

.app-reminder-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Contact Section */
.app-contact-section {
    margin-bottom: 30px;
}

.app-contact-question {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    background-color: #02b1ba;
    padding: 6px 40px 6px 6px;
    border-radius: 20px;
}

.app-whatsapp-button {
    background: var(--text-color-primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 4px 25px;
    margin-left: -32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fw-900 {
    font-weight: 900;
}

.lh-1 {
    line-height: 1 !important;
}

.app-whatsapp-button:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.app-whatsapp-icon {
    font-size: 26px;
}

/* Final Buttons */
.app-final-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.app-new-appointment,
.app-finish {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.app-new-appointment {
    background: #e0e0e0;
    color: #666;
}

.app-new-appointment:hover {
    background: #d4d4d4;
}

/* Responsive for confirmation screen */
@media (max-width: 768px) {
    .app-confirmation-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .app-logo-main {
        font-size: 28px;
    }
    
    .app-logo-sub {
        font-size: 16px;
    }
    
    .app-success-message h2 {
        font-size: 20px;
    }
    
    .app-success-message h3 {
        font-size: 26px;
    }
    
    .app-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .app-final-buttons {
        flex-direction: column;
    }
}
