/*Validation form */

.validation-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
}


.provider-header {
    align-items: center;
    text-align: center;
    color: #043259;
    font-family: "Nunito Sans";
    display: flex;
    flex-direction: column;
}

.provider-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.provider-header .provider-npi {
    margin: 4px 0 0 0;
    font-size: 16px;
    font-weight: 600; 
}

.instructions {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 400;
    max-width: 1400px;
    text-align: left;
    margin-bottom: 16px;
}


.instruction-hint {
    display: flex;
}

.check-icon {
    width: 20px;
    height: 20px;
    margin-left: 20px;
}

/* Form Sections */
.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 30px;
    border: 4px solid #4D6F8C;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.form-section-name {
    padding: 16px;
    border-radius: 10px;
}

.form-section {
    padding: 24px;
    margin-top: 30px;
    border-radius: 10px;
    border: 2px solid #036A6F;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.form-section h3 {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.form-section label,
.form-section-name label {
    display: block;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 8px;
}

.form-group.full-width {
    margin-bottom: 20px !important;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Blocked (read-only) inputs */
.blocked-input {
    position: relative;
    width: 100%;
}

.blocked-input input {
    border: 1px solid #60A699;
    background: rgba(176, 217, 205, 0.35);
    color: #678C96;
    cursor: not-allowed;
    height: 40px;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 40px 8px 16px;
    align-items: center;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Input with check */
.input-with-check {
    position: relative;
    width: 100%;
}

.input-with-check input,
.input-with-check select {
    border: 1px solid #60A699;
    background: rgba(176, 217, 205, 0.35);
    color: #043259;
    cursor: text;
    height: 40px;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 40px 8px 16px;
    align-items: center;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-with-check select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 40px center;
    background-size: 20px;
    padding-right: 70px;
}

.input-with-check input:focus,
.input-with-check select:focus {
    outline: none;
    border: 2px solid #60A699;
    background: rgba(176, 217, 205, 0.5);
}

#inicial {
    text-transform: uppercase;
}



/* Small form groups (for prefijo, inicial) */
.form-group-small {
    flex: 0 0 180px;
    min-width: 180px;
    display: flex;
    flex-direction: column;

}

/* Regular form groups */
.form-group {
    flex: 1;
    min-width: 0; 
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 0 0 100%;
    width: 100%;
}

.field-check {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Add Location Button */
.add-location-btn {
    width: 203px;
    height: 40px;
    border-radius: 5px;
    color: #FFF;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 400;
    /*display: flex; */
    display: none; /*Hide for MVP */
    border: none;
    cursor: pointer;
    background: #043259;
    padding: 10px;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    gap: 8px;
    
}

.add-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 150, 79, 0.4);
    transition: all 0.2s ease;
}

.add-location-btn img {
    width: 20px;
    height: 20px;
}

/* Terms Section */
.terms-section {
    background: transparent;
    padding: 16px;
    text-align: center;
    margin-top: 10px;
}

.terms-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: "Nunito Sans";
    color: #036A6F;
    
}

.terms-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #043259;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
    gap: 12px;

}

.terms-label a {
    color: #036A6F;
    text-decoration: none; /* Remove underline */
    font-weight: 500;
    line-height: 1;
    vertical-align: middle;
}

.terms-label:hover {
    color: #043259;
    text-decoration: underline;
}

.terms-label a:hover {
    text-decoration: none;
}

/* Add Submit Button */
.submit-btn {
    max-height: 40px;
    border-radius: 5px;
    color: #FFF;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 500;
    display: flex;
    border: none;
    cursor: pointer;
    background: #043259;
    padding: 12px 24px;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    gap: 8px;

    
}

.submit-btn:hover {
    background: rgba(96, 166, 153, 1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.submit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Help Text */
.help-text {
    text-align: center;
    display: block;
    color: #036A6F;
    font-size: 14px;
    cursor: pointer;
    margin: 0 auto;
    font-family: "Nunito Sans";
    text-decoration: none;
    margin-top: 20px;
}

.help-text:hover {
    color: #043259;
    text-decoration: underline;
}

.required {
    color: #E7964F;
    font-weight: bold;
}

.required-note {
    text-align: center;
    font-size: 14px;
    color: #043259;
    margin: 20px 0 10px 0;
    font-family: "Nunito Sans";
}

/* Success/Error Modals - Matching ProviderRegisterMain Style */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    display: none;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    font-family: "Nunito Sans";
    color: #043259;
    position: relative;
    z-index: 10000;
}

/* Success styling */
#successModal .modal-content {
    border: 1px solid #60A699;
    box-shadow: 0 4px 6px 2px #60A699;
}

/* Error styling */
#errorModal .modal-content {
    border: 1px solid #FF4D4D;
    box-shadow: 0 2px 2px 2px #FF4D4D;
}

/* Close icon (X) */
.popup-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #043259;
}

/* Modal message container */
.modal-message-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
    align-items: center;
    position: relative;
    justify-content: center;
}

/* Modal title */
.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0;
    color: #043259;
}

/* Modal message text */
.modal-message {
    font-size: 16px;
    color: #043259;
    margin-bottom: 10px;
}

/* Modal button */
.modal-btn {
    margin-top: 20px;
    background: #043259;
    color: #FFF;
    border-radius: 5px;
    font-family: "Nunito Sans";
    font-weight: 500;
    font-size: 14px;
    padding: 12px 24px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.modal-btn:hover {
    background: #4D6F8C;
}

/* Remove old modal-icon styles if they exist */
.modal-icon {
    display: none;
}

.days-selector {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.form-group:has(.days-selector) {
    min-width: 350px;
}

.day-btn {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border: 1px solid #60A699;
    background: white;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-btn:hover {
    background: rgba(96, 166, 153, 0.1);
    transform: scale(1.05);
}

.day-btn.active {
    background: #60A699;
    color: white;
    border-color: #60A699;
}

/* Horario Group (right side) */
.horario-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.horario-group label {
    align-self: flex-start;
    margin-bottom: 8px;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.time-range .input-with-check {
    flex: 0 0 170px;
}

.time-separator {
    font-size: 16px;
    font-weight: 500;
    color: #043259;
    padding: 0 8px;
    margin-top: 8px; /* Align with inputs */
}

/* Time inputs */
input[type="time"] {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 16px;
    border: 1px solid #60A699;
    border-radius: 5px;
    background: rgba(176, 217, 205, 0.35);
    font-family: "Nunito Sans";
    font-size: 14px;
    color: #043259;
    box-sizing: border-box;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
}

input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-clear-button {
    display: none;
}

input[type="time"]::-moz-calendar-picker-indicator {
    display: none;
}

input[type="time"]:focus {
    outline: none;
    border-color: #60A699;
    box-shadow: 0 0 0 3px rgba(96, 166, 153, 0.1);
}

/* ==========================================
   VALIDATION FORM RESPONSIVE
   ========================================== */

/* ==========================================
   TABLET (769px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .validation-container {
        padding: 30px 20px;
        margin: 30px auto;
    }

    .form-container {
        padding: 30px 24px;
        max-width: 100%;
    }

    .provider-header img {
        width: 70px;
        height: 70px;
    }

    .instructions {
        font-size: 15px;
        text-align: center;
    }

    .instruction-hint {
        display: block;
        text-align: center;
    }

    .form-section h3 {
        font-size: 17px;
    }

    .form-row {
        gap: 16px;
    }

    /* Horario adjustments */
    .form-group:has(.days-selector) {
        min-width: 320px;
    }

    .day-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .time-range .input-with-check {
        flex: 0 0 130px;
    }

    .time-range {
    gap: 10px;
    justify-content: flex-start;
    }

}

/* ==========================================
   MOBILE (481px - 768px)
   ========================================== */
@media (max-width: 768px) {
    .validation-container {
        padding: 20px 16px;
        margin: 20px auto;
    }

    .provider-header {
        margin-bottom: 20px;
    }


    .provider-header img {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .provider-header h2 {
        font-size: 20px;
    }

    .provider-header .provider-npi {
        font-size: 14px;
    }

    .instructions {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center
    }

    .instruction-hint {
        flex-direction: column;
        align-items: flex-start;
        display: block;
        text-align: center;
    }

    .check-icon {
        margin-left: 0;
        margin-top: 8px;
    }

    /* Form container */
    .form-container {
        padding: 24px 16px;
        border-width: 3px;
    }

    .form-section-name {
        padding: 12px;
    }

    .form-section {
        padding: 16px;
        margin-top: 20px;
    }

    .form-section h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* Stack all form rows vertically */
    .form-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    /* All form groups full width on mobile */
    .form-group,
    .form-group-small {
        flex: 1;
        width: 100%;
        min-width: 100%;
    }

    .form-group.full-width {
        margin-bottom: 16px !important;
    }

    /* Labels */
    .form-section label,
    .form-section-name label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Inputs */
    .blocked-input input,
    .input-with-check input,
    .input-with-check select {
        height: 42px;
        font-size: 14px;
        padding: 4px 36px 4px 12px;
    }

    .field-check {
        width: 18px;
        height: 18px;
        right: 8px;
    }

    /* Days selector - wrap on mobile */
    .form-group:has(.days-selector) {
        flex: 1;
        min-width: 100%;
    }

    .days-selector {
        gap: 6px;
        flex-wrap: wrap;
    }

    .day-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Horario - stack vertically */
    .horario-group {
        width: 100%;
        align-items: flex-start;
    }

    input[type="time"] {
        width: 100%;
    }

    .time-range {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }


    .time-range .input-with-check {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .time-separator {
        margin-top: 0;
        flex-shrink: 0;
    }

    input[type="time"] {
        height: 40px;
        padding: 4px 36px 4px 12px;
    }

    /* Buttons */
    .add-location-btn,
    .submit-btn {
        width: 100%;
        font-size: 13px;
        padding: 8px 16px;
    }

    /* Terms */
    .terms-section {
        padding: 12px;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .terms-label {
        font-size: 13px;
        flex-direction: row;
    }

    .terms-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    /* Required note */
    .required-note {
        font-size: 13px;
        margin: 16px 0 8px 0;
    }

    /* Help text */
    .help-text {
        font-size: 13px;
        margin-top: 16px;
    }

    /* Modals */
    .modal-content {
        padding: 24px 20px;
        width: 85%;
    }

    .modal-title {
        font-size: 20px;
        margin: 12px 0;
    }

    .modal-message {
        font-size: 14px;
    }

    .modal-btn {
        width: 100%;
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* ==========================================
   MOBILE SMALL (321px - 480px)
   ========================================== */
@media (max-width: 480px) {
    .validation-container {
        padding: 16px 12px;
        margin: 16px auto;
        width: 90%;
    }

    .check-icon {
        display: none;
    }

    .provider-header img {
        width: 50px;
        height: 50px;
    }

    .provider-header h2 {
        font-size: 18px;
    }

    .provider-header .provider-npi {
        font-size: 13px;
    }

    .instructions {
        font-size: 13px;
    }

    .form-container {
        padding: 20px 12px;
        border-radius: 20px;
    }

    .form-section {
        padding: 12px;
    }

    .form-section h3 {
        font-size: 15px;
    }

    .form-section label,
    .form-section-name label {
        font-size: 13px;
    }

    .blocked-input input,
    .input-with-check input,
    .input-with-check select,
    input[type="time"] {
        height: 30px;
        font-size: 13px;
    }

    .day-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .days-selector {
        gap: 4px;
    }

    .time-separator {
        font-size: 14px;
    }


    .terms-label {
        font-size: 12px;
        text-align: center;
    }

    .help-text {
        font-size: 12px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-message {
        font-size: 13px;
    }
}

/* ==========================================
   MOBILE TINY (< 320px)
   ========================================== */
@media (max-width: 320px) {
    .validation-container {
        padding: 12px 8px;
    }


    .form-container {
        padding: 16px 10px;
    }

    .form-section {
        padding: 10px;
    }

    .day-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .blocked-input input,
    .input-with-check input,
    .input-with-check select,
    input[type="time"] {
        font-size: 12px;
    }
}