/* ============================================
   MOBILE RESPONSIVE STYLES FOR APPOINTMENT CALENDAR
   Breakpoint: max-width 1200px (same as mobile-menu.css)
   ============================================ */

/* Hide mobile elements on desktop */
.mobile-day-header {
    display: none !important;
}

.mobile-calendar-view {
    display: none !important;
}

.desktop-calendar-view {
    display: block !important;
}

/* Hide mobile step view on desktop */
.mobile-step-view {
    display: none !important;
}

.desktop-step-view {
    display: block !important;
}

@media (max-width: 1200px) {
    
    /* Show mobile calendar, hide desktop calendar */
    .desktop-calendar-view {
        display: none !important;
    }
    
    .mobile-calendar-view {
        display: block !important;
    }
    
    /* Show mobile step view, hide desktop step view */
    .desktop-step-view {
        display: none !important;
    }
    
    .mobile-step-view {
        display: block !important;
    }
    
    /* ===== CONTAINER & GENERAL LAYOUT ===== */
    
    /* Make main content full width on mobile */
    .maincontent {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Hide doctor avatar and map section on mobile */
    #content_appointment {
        display: none !important;
    }
    
    /* ===== MOBILE WEEK NAVIGATION ===== */
    
    .mobile-week-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 15px;
        background: #fff;
        margin-bottom: 0;
    }
    
    .prev-arrow,
    .next-arrow {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        font-size: 32px;
        color: #333;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    
    .prev-arrow:active,
    .next-arrow:active {
        background: #e0e0e0;
    }
    
    .week-title {
        flex: 1;
        text-align: center;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        padding: 0 15px;
    }
    
    /* ===== MOBILE LOCATION CARD ===== */
    
    .mobile-location-card {
        background: #fff;
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* ===== CLINIC HEADER ===== */
    
    .mobile-clinic-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .clinic-logo {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
    }
    
    .clinic-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .clinic-info {
        flex: 1;
        min-width: 0;
    }
    
    .clinic-info strong {
        display: block;
        margin-bottom: 6px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
    }
    
    .clinic-info .clinic-address {
        font-size: 13px;
        color: #666;
        line-height: 1.5;
        margin-bottom: 4px;
    }
    
    .clinic-info .clinic-phone {
        font-size: 14px;
        color: #4285f4;
        font-weight: 500;
    }
    
    /* ===== MOBILE CLINIC MAP ===== */
    
    .mobile-clinic-map-wrapper {
        width: 100%;
        height: 200px;
        background: #f0f0f0;
        position: relative;
    }
    
    .mobile-clinic-map {
        width: 100%;
        height: 100%;
    }
    
    .mobile-clinic-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    /* ===== MOBILE DAY SELECTOR ===== */
    
    .mobile-day-selector {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        padding: 15px;
        background: #fff;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-day-item {
        flex: 1;
        min-width: 50px;
        max-width: 60px;
        aspect-ratio: 1;
        text-align: center;
        padding: 8px 5px;
        background: #f5f5f5;
        border: 2px solid #e0e0e0;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-day-item .day-name {
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        color: #666;
        display: block;
        margin-bottom: 3px;
        line-height: 1;
    }
    
    .mobile-day-item .day-date {
        font-size: 16px;
        font-weight: 700;
        color: #333;
        display: block;
        line-height: 1;
    }
    
    /* Selected day - blue circle */
    .mobile-day-item.selected-day {
        background: #4285f4;
        border-color: #4285f4;
    }
    
    .mobile-day-item.selected-day .day-name,
    .mobile-day-item.selected-day .day-date {
        color: #fff;
    }
    
    /* Unavailable day - faded with strikethrough */
    .mobile-day-item.unavailable-day {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .mobile-day-item.unavailable-day .day-date {
        text-decoration: line-through;
    }
    
    /* Hover/active state */
    .mobile-day-item:not(.unavailable-day):not(.selected-day):active {
        background: #e8e8e8;
        border-color: #d0d0d0;
    }
    
    /* ===== MOBILE TIME SLOTS ===== */
    
    .mobile-time-slots {
        padding: 15px;
        background: #fff;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mobile-time-slot {
        min-height: 48px;
        padding: 12px;
        background: #efefef;
        border-radius: 24px;
        font-size: 15px;
        font-weight: 500;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid transparent;
    }
    
    .mobile-time-slot:active {
        background: #d9df20;
        color: #fff;
        transform: scale(0.98);
    }
    
    .mobile-time-slot.disabled-slot {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f9f9f9;
        color: #ccc;
    }
    
    .mobile-time-slot.disabled-slot:active {
        background: #f9f9f9;
        color: #ccc;
        transform: none;
    }
    
    /* ===== CLOSED MESSAGE ===== */
    
    .mobile-closed-message {
        padding: 40px 15px;
        background: #fff;
        text-align: center;
    }
    
    .closed-text {
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #999;
        text-transform: uppercase;
    }
    
    /* ===== NEXT BUTTON ===== */
    
    .mobile-next-button {
        padding: 15px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
    }
    
    .btn-next {
        width: 100%;
        padding: 16px;
        background: #e0e0e0;
        color: #999;
        border: none;
        border-radius: 8px;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        cursor: not-allowed;
    }
    
    .btn-next:not(:disabled) {
        background: #d9df20;
        color: #fff;
        cursor: pointer;
    }
    
    .btn-next:not(:disabled):active {
        background: #c0c600;
    }
    
    /* ===== AVATAR & MAP SECTION ===== */
    
    /* Stack avatar and map vertically on mobile */
    .profileinfo {
        flex-direction: column !important;
    }
    
    .profileinfo .col-xs-3,
    .profileinfo .col-xs-4 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .profileinfo .col-xs-8,
    .profileinfo .col-xs-9 {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Avatar full width on mobile */
    .profileinfo .avatar {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    /* Map full width and adjusted height */
    .profileinfo .map {
        padding-bottom: 60% !important;
        width: 100% !important;
    }
    
    /* ===== CALENDAR HEADER (apt-block-fixed) ===== */
    
    /* Simplify header on mobile - make it more compact */
    .apt-block-fixed {
        position: relative !important;
        background: #fff;
        padding: 15px 0 !important;
        margin-bottom: 20px;
        border-bottom: 2px solid #faaf3a;
    }
    
    /* Title - smaller font on mobile */
    .apt-block-fixed > p {
        font-size: 16px !important;
        margin: 0 0 15px 0 !important;
        padding: 0 15px;
    }
    
    /* Navigation buttons - larger touch targets */
    .calendar .previous,
    .calendar .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px !important;
        height: 44px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        z-index: 10;
    }
    
    .calendar .previous {
        left: 15px !important;
    }
    
    .calendar .next {
        right: 15px !important;
        left: auto !important;
    }
    
    .calendar .previous:before,
    .calendar .next:before {
        position: static !important;
        font-size: 24px !important;
        left: auto !important;
    }
    
    /* Hide day-names header on mobile - we'll show day names in cards instead */
    .apt-block-fixed .day-names {
        display: none !important;
    }
    
    /* ===== CALENDAR CONTAINER ===== */
    
    .calendar {
        width: 100% !important;
        overflow: visible !important;
    }
    
    /* Remove float from location blocks */
    .calendar .location-block {
        float: none !important;
        width: 100% !important;
        display: block !important;
        margin-bottom: 20px !important;
        padding: 20px !important;
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Remove float from all li elements in location-block */
    .calendar .location-block > li {
        float: none !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Clear floats */
    .calendar .location-block:after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Clear floats from ol elements */
    .calendar ol.location-block {
        overflow: visible;
    }
    
    /* ===== LOCATION DETAIL (Clinic Info) ===== */
    
    /* Location detail becomes card header */
    .location-block .location-detail {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid #faaf3a;
    }
    
    /* Clinic name - larger and bolder */
    .location-detail strong {
        font-size: 18px !important;
        font-weight: 600 !important;
        display: block;
        margin-bottom: 8px;
        color: #333;
    }
    
    /* Phone number */
    .location-detail .phone {
        font-size: 15px !important;
        display: block;
        margin-bottom: 8px;
        color: #666;
    }
    
    /* Address */
    .location-detail .address {
        font-size: 14px !important;
        display: block;
        color: #666;
        line-height: 1.5;
    }
    
    /* ===== DAY COLUMNS - CONVERT TO VERTICAL STACK ===== */
    
    /* Single day becomes a section within the card */
    .location-block .singleday,
    .location-block li.singleday {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin: 0 0 20px 0 !important;
        padding: 15px !important;
        background: #f9f9f9;
        border-radius: 6px;
        border: 1px solid #e8e8e8;
        box-sizing: border-box;
    }
    
    /* Remove any default list styling */
    .location-block .singleday:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Day header - show day name and date (shown on mobile) */
    .singleday .mobile-day-header,
    .singleday.noblock .mobile-day-header {
        display: block !important;
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #faaf3a;
        text-transform: uppercase;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e1e1e1;
    }
    
    .mobile-day-header strong {
        display: inline-block;
        margin-right: 8px;
        font-weight: 600;
    }
    
    .mobile-day-header .mobile-day-date {
        font-size: 14px;
        font-weight: normal;
        color: #666;
    }
    
    /* No block styling */
    .singleday.noblock {
        background: #fff;
        border: 1px dashed #e1e1e1;
    }
    
    .singleday.noblock .mobile-day-header {
        color: #ccc;
        font-weight: normal;
    }
    
    .singleday.noblock .mobile-day-header::after {
        content: " - No availability";
        font-size: 14px;
        font-weight: normal;
        color: #ccc;
    }
    
    /* ===== TIME BLOCKS ===== */
    
    .time-block {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        display: block !important;
    }
    
    .time-block > div {
        width: 100% !important;
    }
    
    /* Time slot items - larger touch targets */
    .time-block li {
        width: 100% !important;
        min-height: 44px !important;
        padding: 12px 15px !important;
        margin: 8px 0 !important;
        background: #efefef !important;
        border-radius: 6px;
        font-size: 15px !important;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 2px solid transparent;
    }
    
    .time-block li:hover,
    .time-block li:active {
        background: #d9df20 !important;
        color: #fff !important;
        transform: scale(1.02);
        border-color: #d9df20;
    }
    
    /* Disabled time slots */
    .time-block li span[style*="color: #CCC"],
    .time-block li span[style*="color:#CCC"] {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .time-block li:hover span[style*="color: #CCC"],
    .time-block li:hover span[style*="color:#CCC"] {
        background: #efefef !important;
        color: #ccc !important;
        transform: none;
    }
    
    /* More button styling */
    .time-block li .more {
        font-size: 15px !important;
        font-weight: 600;
        font-style: normal;
    }
    
    /* ===== RESPONSIVE UTILITIES ===== */
    
    /* Hide unnecessary elements on mobile */
    .calendar ol:before,
    .calendar ol:after {
        display: none !important;
    }
    
    /* Ensure no horizontal scroll */
    .calendar,
    .location-block,
    .singleday,
    .time-block {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    /* Override any default calendar ol li styles */
    .calendar ol.location-block > li {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure ol elements don't use float */
    .calendar ol li {
        float: none !important;
    }
    
    /* ===== STICKY HEADER ADJUSTMENT ===== */
    
    /* Disable sticky positioning on mobile for cleaner UX */
    .apt-block-fixed {
        position: relative !important;
        top: auto !important;
    }
    
    /* Adjust scroll behavior */
    #content_appointment {
        margin-bottom: 0;
    }
    
    /* ===== MODAL RESPONSIVE ===== */
    
    /* Make modals responsive on mobile */
    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    /* Doctor list in modal */
    .doctorlistlong > li {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }
    
    .doctorlistlong > li > div {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .doctorlistlong > li > div:last-child {
        margin-bottom: 0;
    }
    
    .doctorlistlong .avatar {
        margin: 0 auto 15px auto !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    /* ===== APPOINTMENT INFO SECTION ===== */
    
    .appointdoctorinfo {
        margin-bottom: 20px !important;
        padding: 15px !important;
        text-align: center;
    }
    
    .appointdoctorinfo .user {
        display: block;
        margin-bottom: 10px;
        font-size: 18px !important;
    }
    
    .appointdoctorinfo .rating {
        display: block;
    }
    
    /* ===== ADDITIONAL SPACING ===== */
    
    .editproviewport.blockcont {
        padding: 15px !important;
    }
    
    .blockcont {
        margin-bottom: 20px;
    }
    
    /* ===== TITLE STYLING ===== */
    
    .smalltitle {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    /* ===== IMPROVE TOUCH TARGETS ===== */
    
    /* Ensure all clickable elements are touch-friendly */
    .calendar a,
    .calendar button,
    .calendar .previous,
    .calendar .next,
    .time-block li {
        -webkit-tap-highlight-color: rgba(217, 223, 32, 0.3);
    }
}

/* Extra small devices (phones, 768px and down) */
@media (max-width: 768px) {
    
    /* Even more compact on very small screens */
    .apt-block-fixed > p {
        font-size: 14px !important;
    }
    
    .location-detail strong {
        font-size: 16px !important;
    }
    
    .time-block li {
        min-height: 48px !important;
        padding: 14px 15px !important;
        font-size: 14px !important;
    }
    
    .profileinfo .map {
        padding-bottom: 70% !important;
    }
    
    .calendar .location-block {
        padding: 15px !important;
    }
    
    .singleday {
        padding: 12px !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE FOR APPOINTMENT STEP PAGE
   ============================================ */

@media (max-width: 1200px) {
    
    /* ===== APPOINTMENT CARD ===== */
    
    /* Desktop Step View - Stack appointment card columns vertically */
    .desktop-step-view .appointmentcard .row {
        flex-direction: column !important;
    }
    
    .desktop-step-view .appointmentcard .col-xs-2,
    .desktop-step-view .appointmentcard .col-xs-8 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .desktop-step-view .appointmentcard .col-xs-2:last-child {
        margin-bottom: 0;
    }
    
    /* Avatar centered on mobile */
    .desktop-step-view .appointmentcard .avatar {
        margin: 0 auto 15px auto !important;
        max-width: 150px !important;
        width: 100% !important;
    }
    
    /* Doctor info centered */
    .desktop-step-view .appointmentcard .user {
        text-align: center !important;
        margin-bottom: 10px;
    }
    
    .desktop-step-view .appointmentcard .user strong {
        font-size: 18px !important;
    }
    
    /* Rating centered */
    .desktop-step-view .appointmentcard .rating {
        text-align: center !important;
        margin-bottom: 10px;
    }
    
    /* Address and phone info */
    .desktop-step-view .appointmentcard .address,
    .desktop-step-view .appointmentcard .phone {
        text-align: center !important;
        font-size: 14px !important;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    /* Datetime section */
    .desktop-step-view .appointmentcard .datetime {
        text-align: center !important;
        border-top: 2px solid #faaf3a;
        padding-top: 15px !important;
        margin-top: 15px;
    }
    
    .desktop-step-view .appointmentcard .datetime .time {
        font-size: 28px !important;
        display: block;
        margin-bottom: 5px;
    }
    
    .desktop-step-view .appointmentcard .datetime .date {
        font-size: 16px !important;
        display: block;
    }
    
    /* Mobile Step View - Avatar and Doctor Info in Horizontal Layout */
    .mobile-step-view .mobile-doctor-header {
        display: flex !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid #faaf3a !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-step-view .mobile-avatar {
        flex-shrink: 0 !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    .mobile-step-view .mobile-avatar .avatar {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        background-size: cover !important;
        background-position: center !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-step-view .mobile-doctor-info {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .mobile-step-view .mobile-doctor-info .user {
        text-align: left !important;
        margin-bottom: 6px !important;
    }
    
    .mobile-step-view .mobile-doctor-info .user strong {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    .mobile-step-view .mobile-doctor-info .rating {
        text-align: left !important;
        margin-bottom: 6px !important;
        font-size: 12px !important;
    }
    
    .mobile-step-view .mobile-doctor-info .address {
        text-align: left !important;
        font-size: 13px !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin-bottom: 6px !important;
    }
    
    .mobile-step-view .mobile-doctor-info .phone {
        text-align: left !important;
        font-size: 14px !important;
        color: #4285f4 !important;
        font-weight: 500 !important;
        margin-bottom: 0 !important;
    }
    
    .mobile-step-view .mobile-appointment-datetime {
        text-align: center !important;
        padding: 15px 0 !important;
    }
    
    .mobile-step-view .mobile-appointment-datetime .time {
        display: block !important;
        font-size: 32px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-step-view .mobile-appointment-datetime .date {
        display: block !important;
        font-size: 16px !important;
        color: #666 !important;
    }
    
    /* ===== WIZARD STEPS ===== */
    
    /* Desktop Step View - Wizard with horizontal scroll */
    .desktop-step-view .wizard {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 25px !important;
        padding-bottom: 10px;
    }
    
    .desktop-step-view .wizard li {
        width: 120px !important;
        min-width: 120px !important;
        font-size: 12px !important;
        padding: 10px 8px !important;
        margin-right: 5px;
        flex-shrink: 0;
    }
    
    .desktop-step-view .wizard li:nth-child(3),
    .desktop-step-view .wizard li:nth-child(4) {
        width: 120px !important;
    }
    
    .desktop-step-view .wizard li .badge {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    /* Simplify wizard arrow on mobile */
    .desktop-step-view .wizard li:before,
    .desktop-step-view .wizard li:after {
        display: none !important;
    }
    
    /* Mobile Step View - Equal Width Wizard Steps */
    .mobile-step-view .wizard {
        display: flex !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    
    .mobile-step-view .wizard li {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        font-size: 11px !important;
        padding: 12px 5px !important;
        margin: 0 !important;
        text-align: center !important;
        background: #f5f5f5 !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        transition: all 0.2s !important;
    }
    
    .mobile-step-view .wizard li.current {
        background: #fffef0 !important;
        border-color: #d9df20 !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    .mobile-step-view .wizard li.completed {
        background: #f0f8f0 !important;
        border-color: #4caf50 !important;
    }
    
    .mobile-step-view .wizard li .badge {
        display: block !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        color: #333 !important;
    }
    
    .mobile-step-view .wizard li.current .badge {
        color: #d9df20 !important;
    }
    
    .mobile-step-view .wizard li.completed .badge {
        color: #4caf50 !important;
    }
    
    /* Hide wizard arrows on mobile */
    .mobile-step-view .wizard li:before,
    .mobile-step-view .wizard li:after {
        display: none !important;
    }
    
    /* ===== FORMS ===== */
    
    /* Form labels and fields - stack vertically on mobile */
    .prolabel {
        width: 100% !important;
        display: block !important;
        margin-bottom: 8px !important;
        font-size: 15px !important;
        font-weight: 600;
        padding: 0 !important;
    }
    
    .profield {
        width: 100% !important;
        display: block !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Clear inline-block spacing */
    .prolabel + .profield {
        margin-left: 0 !important;
    }
    
    /* Input fields full width */
    .profield input[type="text"],
    .profield input[type="password"],
    .profield input[type="email"],
    .profield textarea,
    .profield select {
        width: 100% !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Textarea */
    .profield textarea {
        min-height: 120px !important;
        resize: vertical;
    }
    
    /* Checkbox and radio buttons - Desktop Step View */
    .desktop-step-view .profield.checkbox {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .desktop-step-view .profield.checkbox input[type="radio"],
    .desktop-step-view .profield.checkbox input[type="checkbox"] {
        width: auto !important;
        margin-right: 8px;
    }
    
    .desktop-step-view .profield.checkbox label {
        font-size: 15px !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 8px;
        border: 1px solid #e1e1e1;
        border-radius: 6px;
        transition: background 0.2s;
    }
    
    .desktop-step-view .profield.checkbox label:hover {
        background: #f5f5f5;
    }
    
    /* Checkbox and radio buttons - Mobile Step View */
    .mobile-step-view .profield.checkbox {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px 20px;
        align-items: center;
    }
    
    .mobile-step-view .profield.checkbox input[type="radio"],
    .mobile-step-view .profield.checkbox input[type="checkbox"] {
        width: auto !important;
        margin-right: 6px;
        margin-bottom: 0;
    }
    
    .mobile-step-view .profield.checkbox label {
        font-size: 15px !important;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        transition: color 0.2s;
        white-space: nowrap;
    }
    
    .mobile-step-view .profield.checkbox label:hover {
        background: transparent;
        color: #d9df20;
    }
    
    /* Row columns stack vertically */
    .profield .row .col-xs-4,
    .profield .row .col-xs-6,
    .profield .row .col-xs-9,
    .profield .row .col-xs-12,
    .row .col-xs-4,
    .row .col-xs-6,
    .row .col-xs-9,
    .row .col-xs-12 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        float: none !important;
    }
    
    .row .col-xs-4:last-child,
    .row .col-xs-6:last-child,
    .row .col-xs-9:last-child,
    .row .col-xs-12:last-child,
    .profield .row .col-xs-4:last-child,
    .profield .row .col-xs-6:last-child,
    .profield .row .col-xs-9:last-child,
    .profield .row .col-xs-12:last-child {
        margin-bottom: 0;
    }
    
    /* Date of birth selectors stack vertically */
    .profield .row {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Clear floats on rows */
    .profield .row:after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Select wrapper */
    .selectwrap {
        width: 100% !important;
    }
    
    .selectwrap select {
        width: 100% !important;
    }
    
    /* Guardian info inputs - stack First/Last name */
    .profield input[style*="width: 49%"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* ===== BUTTONS ===== */
    
    .prosubmit {
        text-align: center !important;
        margin-top: 25px !important;
        margin-bottom: 20px !important;
    }
    
    .prosubmit .btn {
        width: 100% !important;
        max-width: 300px;
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== RECAPTCHA ===== */
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 10px;
    }
    
    /* ===== MODALS ===== */
    
    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-body {
        padding: 20px 15px !important;
        font-size: 15px !important;
        line-height: 1.6;
    }
    
    .modal-footer {
        padding: 15px !important;
        text-align: center !important;
    }
    
    .modal-footer .btn {
        width: 48% !important;
        margin: 0 1% !important;
        min-height: 44px;
    }
    
    /* ===== TITLE AND TEXT ===== */
    
    .smalltitle {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .blockcont p {
        font-size: 15px !important;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .explain {
        font-size: 14px !important;
        line-height: 1.6;
        margin-top: 10px;
    }
    
    /* ===== MEMBER TYPE ELEMENTS ===== */
    
    .membertypeele {
        width: 100% !important;
        margin-top: 20px;
    }
    
    /* ===== APPOINTMENT FORM CONTAINER ===== */
    
    .appointmentform {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* ===== HIDDEN FORMS ===== */
    
    .hiddenform {
        width: 100% !important;
    }
    
    /* ===== INFORM BUTTON ===== */
    
    .informbtn {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    /* Phone number row on step 3 */
    .profield .row .col-xs-9 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .profield .row .col-xs-3 {
        width: 100% !important;
    }
    
    /* Box container */
    .appointmentcard.box {
        padding: 20px 15px !important;
    }
    
    /* Edit viewport */
    .editproviewport {
        padding: 20px 15px !important;
    }
    
    /* Block container */
    .blockcont {
        padding: 15px !important;
    }
    
    /* Ensure proper spacing */
    .appointmentform > form {
        margin-bottom: 20px;
    }
    
    /* Clearfix for forms */
    .appointmentform:after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Parent/Guardian section */
    .blockcont[style*="margin-top"] {
        margin-top: 20px !important;
        padding: 20px 15px !important;
        background: #f9f9f9;
        border-radius: 8px;
        border: 1px solid #e1e1e1;
    }
    
    /* Terms checkbox */
    .profield input[type="checkbox"] + label,
    .profield label[for] {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    /* Clear any inline styles that might conflict */
    .profield input[style*="width"],
    .profield select[style*="width"] {
        width: 100% !important;
    }
}

/* Extra small devices (phones, 768px and down) */
@media (max-width: 768px) {
    
    .appointmentcard .datetime .time {
        font-size: 24px !important;
    }
    
    .desktop-step-view .wizard li {
        width: 100px !important;
        min-width: 100px !important;
        font-size: 10px !important;
    }
    
    .mobile-step-view .wizard li {
        font-size: 10px !important;
        padding: 10px 3px !important;
    }
    
    .mobile-step-view .wizard li .badge {
        font-size: 14px !important;
    }
    
    .smalltitle {
        font-size: 18px !important;
    }
    
    .prosubmit .btn {
        width: 100% !important;
        max-width: 100%;
    }
}

