/* Minimal Signup Form Enhancements - Clean & Modern */

/* Fix tab visibility - CRITICAL */
.tab {
    display: none;
}

.tab.current {
    display: block !important;
}

/* Progress Bar Improvements - Keep Original Style but Enhance */
#progressbar {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 auto 40px !important;
    max-width: 600px;
    position: relative;
}

#progressbar li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#progressbar li:before {
    width: 40px !important;
    height: 40px !important;
    line-height: 36px !important;
    border: 2px solid #dee2e6 !important;
    background: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#progressbar li.active:before {
    background: white !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

#progressbar li.active:after {
    background: #28a745 !important;
}

/* Clean Form Styling */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: 0;
}

.form-control:hover {
    border-color: #b8c5d6;
}

/* Button Styling - Keep Bootstrap but Enhance */
.btn {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-default {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-default:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
}

.btn-outline-default {
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-outline-default:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Theme Selection Cards */
.theme-card-wrap {
    margin-bottom: 20px;
}

.theme-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.theme-card.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.theme-card .img-wrap {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.theme-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-card .btn-container {
    padding: 12px;
    background: white;
}

.theme-card .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Clinic Hours Styling */
.timer-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.week-container {
    margin-bottom: 15px;
}

.week-container .nav-pills {
    background: white;
    border-radius: 6px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.week-container .nav-link {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.week-container .nav-link .week {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.week-container .nav-link:hover .week {
    background: #e9ecef;
}

.week-container .nav-link.active .week {
    background: #007bff;
    color: white;
}

/* Time Input Fields */
.timer-field input.form-control {
    background: white;
    border: 1px solid #dee2e6;
    font-size: 13px;
}

.timer-field input.form-control:focus {
    border-color: #007bff;
    box-shadow: none;
}

/* Custom Toggle Switch */
.custom-toggle {
    position: relative;
    display: inline-block;
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
    cursor: pointer;
}

.custom-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.custom-toggle input:checked + .custom-toggle-slider {
    background-color: #28a745;
}

.custom-toggle input:checked + .custom-toggle-slider:before {
    transform: translateX(24px);
}

/* File Upload Area */
.file-drop-area,
.user-profile-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.file-drop-area:hover,
.user-profile-zone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.user-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Specialty Selection */
.count-cards {
    display: inline-block;
    margin: 5px;
}

.count-cards label {
    display: block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.count-cards label:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.count-cards input:checked ~ label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Loading Bar */
.loading-bar {
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin: 15px 0;
}

.loading-bar-spinner {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Form Sections */
.form-head {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

/* Physician List */
.physician-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.physician-list .Practitioner_info {
    font-weight: 600;
    color: #212529;
}

/* Error Messages */
label.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-control.error {
    border-color: #dc3545;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    #progressbar li {
        font-size: 10px !important;
    }
    
    #progressbar li:before {
        width: 30px !important;
        height: 30px !important;
        line-height: 26px !important;
        font-size: 12px;
    }
    
    .theme-card .img-wrap {
        height: 120px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Walk-in Hours Toggle */
#add-walk-in {
    margin-right: 8px;
}

/* Services Grid */
.specialist_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialist_list.top_specs .count-cards:nth-child(n+6) {
    display: none;
}

.see-all,
.see-less {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
    margin-top: 10px;
}

.see-less {
    display: none;
}

/* Appointment Types */
.appointment-type-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.appointment-type-card:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.appointment-type-card input:checked ~ .appointment-card-content {
    background: #007bff;
    color: white;
    border-radius: 6px;
    margin: -15px;
    padding: 15px;
}

/* Clean Override for any conflicts */
.clinic-signup-wizard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.clinic-signup-wizard * {
    box-sizing: border-box;
}

/* Ensure proper stacking */
.tab {
    position: relative;
    z-index: 1;
}

.tab.current {
    z-index: 10;
}