/* ========================================
   REGISTRATION RESPONSIVE FIXES - STEP 2
   Targeting 0-479px and 480-767px breakpoints
   Optimized for OnePlus 10, Galaxy A14, iPhone X
   ======================================== */

/* ========================================
   GLOBAL MOBILE OPTIMIZATIONS
   ======================================== */

/* Progress Indicator Mobile Fixes */
@media (max-width: 767px) {
    .registration-progress {
        padding: 20px 0 15px !important;
    }

    .progress-indicator {
        gap: 20px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .step-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    .step-label {
        font-size: 12px !important;
        text-align: center !important;
        max-width: 70px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 479px) {
    .progress-indicator {
        gap: 15px !important;
    }

    .step-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .step-label {
        font-size: 11px !important;
        max-width: 60px !important;
    }
}

/* ========================================
   STEP 2 PROFILE FORM FIXES
   ======================================== */

/* Profile Form Basic Information - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .profile-form .row {
        margin: 0 !important;
        padding: 0 15px !important;
    }

    .profile-form .row > div {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 8px !important;
    }

    .profile-form .form-control {
        height: 55px !important;
        padding: 15px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
    }

    .profile-form input::placeholder {
        font-size: 16px !important;
    }

    /* Date wrapper specific fixes */
    .profile-form .date-wrapper {
        position: relative !important;
    }

    .profile-form .date-label {
        position: absolute !important;
        top: -8px !important;
        left: 15px !important;
        background: #f8f9fa !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        color: #666 !important;
        border-radius: 4px !important;
    }

    .profile-form .date-label small {
        display: block !important;
        font-size: 10px !important;
        margin-top: 2px !important;
    }

    /* Password input container fixes */
    .profile-form .password-input-container {
        position: relative !important;
    }

    .profile-form .toggle_password {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 16px !important;
        color: #666 !important;
        z-index: 10 !important;
        cursor: pointer !important;
        padding: 5px !important;
    }
}

/* Profile Form Basic Information - 0-479px */
@media (max-width: 479px) {
    .profile-form .row {
        margin: 0 !important;
        padding: 0 10px !important;
    }

    .profile-form .row > div {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 5px !important;
    }

    .profile-form .form-control {
        height: 50px !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        margin-bottom: 0 !important;
    }

    .profile-form input::placeholder {
        font-size: 16px !important;
    }

    /* Date wrapper mobile specific */
    .profile-form .date-wrapper {
        position: relative !important;
    }

    .profile-form .date-label {
        position: absolute !important;
        top: -10px !important;
        left: 12px !important;
        background: #f8f9fa !important;
        padding: 2px 6px !important;
        font-size: 10px !important;
        color: #666 !important;
        border-radius: 3px !important;
        z-index: 5 !important;
    }

    .profile-form .date-label label {
        font-size: 10px !important;
        margin: 0 !important;
    }

    .profile-form .date-label small {
        font-size: 9px !important;
        margin-top: 1px !important;
    }

    /* Password toggle mobile */
    .profile-form .toggle_password {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 14px !important;
        color: #666 !important;
        z-index: 10 !important;
        cursor: pointer !important;
        padding: 8px !important;
        touch-action: manipulation !important;
    }
}

/* ========================================
   PROFILE ACCORDION FIXES
   ======================================== */

/* Accordion Width Optimization for Mobile - Maximum Width */
@media (max-width: 767px) {
    .build-profile {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .profile-accordion {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-accordion .accordion-item {
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 10px !important;
        width: 100% !important;
    }

    .profile-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Container holding the accordion */
    .col-xl-10.colg-10.col-md-12.col-sm-12 {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 479px) {
    .build-profile {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .profile-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-accordion {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-item {
        margin-bottom: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
        width: 100% !important;
    }

    /* Bootstrap column container - minimal padding */
    .col-xl-10.colg-10.col-md-12.col-sm-12 {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
    }
}

/* Accordion Header Responsiveness */
@media (max-width: 767px) {
    .profile-accordion .accordion-button {
        font-size: 24px !important;
        padding: 15px 20px !important;
    }

    .profile-accordion .accordion-button small {
        font-size: 14px !important;
    }

    .profile-accordion .accordion-body {
        padding: 25px 10px !important;
    }

    /* Premium badge positioning */
    .accordion-header .premium-badge {
        right: 50px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 479px) {
    .profile-accordion .accordion-button {
        font-size: 20px !important;
        padding: 12px 15px !important;
        line-height: 1.3 !important;
    }

    .profile-accordion .accordion-button small {
        font-size: 12px !important;
    }

    .profile-accordion .accordion-body {
        padding: 15px 8px !important;
    }

    .accordion-header .premium-badge {
        right: 8px !important;
        bottom: 8px !important;
        padding: 3px 6px !important;
        font-size: 9px !important;
        border-radius: 10px !important;
        min-height: 21px !important;
    }
}

/* ========================================
   ABOUT ME SECTION RESPONSIVE FIXES
   ======================================== */

/* About Me Section Header Optimization */
@media (max-width: 767px) {
    .about-section .section-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Specific center alignment for title container only */
    .about-section .section-header .card-title-container,
    .about-section .section-header > div:not(.section-icon) {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .about-section .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .about-section .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }



    .about-section .section-subtitle {
        font-size: 12px !important;
        text-align: center !important;
        color: #666 !important;
    }
}

@media (max-width: 479px) {
    .about-section .section-header {
        margin-bottom: 15px !important;
        gap: 5px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Mobile specific center alignment for title container only */
    .about-section .section-header .card-title-container,
    .about-section .section-header > div:not(.section-icon) {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .about-section .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .about-section .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }



    .about-section .section-subtitle {
        font-size: 11px !important;
    }
}

/* About Cards Container - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .about-cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .about-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }

    /* About Me Card Headers */
    .about-card .card-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        gap: 8px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .about-card .card-icon {
        margin-right: 0 !important;
        font-size: 18px !important;
        color: #ffffff !important;
    }

    .about-card .card-title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
        font-weight: 600 !important;
    }

    .about-card .card-subtitle {
        font-size: 11px !important;
        color: #666 !important;
        text-align: center !important;
    }

    .bio-card .card-content .bio-textarea {
        min-height: 100px !important;
        font-size: 14px !important;
        padding: 12px !important;
    }

    .bio-card .character-count {
        font-size: 11px !important;
        margin-top: 5px !important;
    }

    /* Profile Image Section */
    .image-card .card-content {
        text-align: center !important;
    }

    .image-card .upload-section {
        margin-bottom: 15px !important;
    }

    .image-card .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    #reg-image-preview {
        text-align: center !important;
    }

    #reg-preview-img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 6px !important;
    }

    /* Profession Card */
    .profession-card .card-content {
        height: auto !important;
        padding: 15px !important;
    }
    
    .profession-card .profession-selector {
        position: relative !important;
    }

    .profession-card .profession-select {
        width: 100% !important;
        font-size: 14px !important;
        padding: 12px 40px 12px 15px !important;
    }

    .profession-card .select-icon {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: none !important;
    }
}

/* About Me Section - 0-479px */
@media (max-width: 479px) {
    .about-cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .about-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 10px !important;
        padding: 12px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
    }

    /* About Me Card Headers - Mobile */
    .about-card .card-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 12px !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .about-card .card-icon {
        margin-right: 0 !important;
        font-size: 16px !important;
        color: #ffffff !important;
    }

    .about-card .card-title {
        font-size: 13px !important;
        margin-bottom: 1px !important;
        font-weight: 600 !important;
    }

    .about-card .card-subtitle {
        font-size: 10px !important;
        color: #666 !important;
        text-align: center !important;
    }

    .bio-card .card-content .bio-textarea {
        min-height: 80px !important;
        font-size: 14px !important;
        padding: 10px !important;
    }

    .bio-card .character-count {
        font-size: 10px !important;
        margin-top: 4px !important;
    }

    /* Profile Image Section Mobile */
    .image-card .card-content {
        text-align: center !important;
        padding: 15px 10px !important;
    }

    .image-card .upload-section {
        margin-bottom: 10px !important;
    }

    .image-card .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    .image-card small {
        font-size: 11px !important;
    }

    #reg-image-preview {
        text-align: center !important;
        margin-top: 10px !important;
    }

    #reg-preview-img {
        width: 100px !important;
        height: 100px !important;
        border-radius: 5px !important;
    }

    #reg-remove-preview {
        padding: 4px 8px !important;
        font-size: 11px !important;
        margin-top: 5px !important;
    }

    /* Profession Card Mobile */
    .profession-card .card-content {
        height: auto !important;
        padding: 15px !important;
    }
    
    .profession-card .profession-selector {
        position: relative !important;
        margin-top: 0 !important;
    }

    .profession-card .profession-select {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 35px 10px 12px !important;
        height: 45px !important;
        background: #f8f9fa !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
    }

    .profession-card .select-icon {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: none !important;
        font-size: 12px !important;
        color: #666 !important;
    }

    .profession-card .profession-select:focus {
        border-color: #5598E9 !important;
        box-shadow: 0 0 0 2px rgba(85, 152, 233, 0.1) !important;
    }
    
    /* Custom Profession Input */
    .custom-profession-wrapper {
        margin-top: 0 !important;
    }
    
    .custom-profession-wrapper .form-control {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        background: #f8f9fa !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
    }
    
    .custom-profession-wrapper .form-control:focus {
        border-color: #5598E9 !important;
        box-shadow: 0 0 0 2px rgba(85, 152, 233, 0.1) !important;
        background: #ffffff !important;
    }
    
    .custom-profession-wrapper small {
        color: #666 !important;
        font-size: 12px !important;
    }
}

/* ========================================
   ACCORDION OPTIONS GRID FIXES
   ======================================== */

/* Gender Options - 480-767px - Stacked Layout */
@media (min-width: 480px) and (max-width: 767px) {
    .profile-accordion .accordion-item.gender .gender-options,
    .accordion-item.gender .gender-options,
    .gender .gender-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-item.gender .gender-card,
    .accordion-item.gender .gender-card,
    .gender .gender-card {
        width: 90% !important;
        max-width: 280px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .profile-accordion .accordion-item.gender .gender-label,
    .accordion-item.gender .gender-label,
    .gender .gender-label {
        padding: 15px 10px !important;
        text-align: center !important;
        font-size: 13px !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        width: 100% !important;
    }

    .gender-icon {
        font-size: 20px !important;
    }

    .gender-text {
        font-size: 13px !important;
    }
}

@media (max-width: 479px) {
    .profile-accordion .accordion-item.gender .gender-options,
    .accordion-item.gender .gender-options,
    .gender .gender-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-item.gender .gender-card,
    .accordion-item.gender .gender-card,
    .gender .gender-card {
        width: 95% !important;
        max-width: 250px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .profile-accordion .accordion-item.gender .gender-label,
    .accordion-item.gender .gender-label,
    .gender .gender-label {
        padding: 12px 8px !important;
        text-align: center !important;
        font-size: 12px !important;
        min-height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        width: 100% !important;
    }

    .gender-icon {
        font-size: 18px !important;
    }

    .gender-text {
        font-size: 12px !important;
    }
}

/* Traveling Options - 480-767px - Optimized Layout */
@media (min-width: 480px) and (max-width: 767px) {
    .profile-accordion .accordion-item.travel .traveling-options,
    .accordion-item.travel .traveling-options,
    .travel .traveling-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        align-items: center !important;
    }

    .profile-accordion .accordion-item.travel .traveling-card,
    .accordion-item.travel .traveling-card,
    .travel .traveling-card {
        width: 85% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .profile-accordion .accordion-item.travel .traveling-label,
    .accordion-item.travel .traveling-label,
    .travel .traveling-label {
        padding: 18px 15px !important;
        text-align: center !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .traveling-icon {
        font-size: 22px !important;
    }

    .traveling-text {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .traveling-desc {
        font-size: 11px !important;
        opacity: 0.8 !important;
    }
}

@media (max-width: 479px) {
    .profile-accordion .accordion-item.travel .traveling-options,
    .accordion-item.travel .traveling-options,
    .travel .traveling-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        align-items: center !important;
    }

    .profile-accordion .accordion-item.travel .traveling-card,
    .accordion-item.travel .traveling-card,
    .travel .traveling-card {
        width: 90% !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    .profile-accordion .accordion-item.travel .traveling-label,
    .accordion-item.travel .traveling-label,
    .travel .traveling-label {
        padding: 15px 12px !important;
        text-align: center !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .traveling-icon {
        font-size: 20px !important;
    }

    .traveling-text {
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    .traveling-desc {
        font-size: 10px !important;
        opacity: 0.8 !important;
    }
}

/* My Shift Schedule - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .my-shift-schedule-options {
        gap: 12px !important;
    }

    .my-shift-card {
        width: 100% !important;
        max-width: 160px !important;
    }

    .my-shift-label {
        padding: 12px 8px !important;
        text-align: center !important;
        height: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .my-shift-content {
        gap: 6px !important;
    }

    .my-shift-icon {
        font-size: 18px !important;
    }

    .my-shift-text {
        font-size: 12px !important;
    }

    .my-shift-time {
        font-size: 10px !important;
    }
}

@media (max-width: 479px) {
    .my-shift-schedule-options {
        gap: 8px !important;
        margin: 0 10px !important;
    }

    .my-shift-card {
        width: 100% !important;
        max-width: 150px !important;
    }

    .my-shift-label {
        padding: 10px 6px !important;
        text-align: center !important;
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .my-shift-content {
        gap: 4px !important;
    }

    .my-shift-icon {
        font-size: 16px !important;
    }

    .my-shift-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .my-shift-time {
        font-size: 9px !important;
    }
}

/* ========================================
   GUEST FORMS MOBILE FIXES
   ======================================== */

/* Guest Section - 480-767px - Enhanced Mobile */
@media (min-width: 480px) and (max-width: 767px) {
    .profile-accordion .accordion-item.travel .guest-section,
    .accordion-item.travel .guest-section,
    .travel .guest-section {
        margin: 20px 0 !important;
        padding: 18px !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    .profile-accordion .accordion-item.travel .guest-header,
    .accordion-item.travel .guest-header,
    .travel .guest-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 18px !important;
        gap: 10px !important;
    }

    .profile-accordion .accordion-item.travel .guest-title,
    .accordion-item.travel .guest-title,
    .travel .guest-title {
        font-size: 16px !important;
        margin: 0 !important;
        font-weight: 600 !important;
        color: #495057 !important;
    }

    .profile-accordion .accordion-item.travel .guest-controls,
    .accordion-item.travel .guest-controls,
    .travel .guest-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-item.travel #add-guest-btn,
    .accordion-item.travel #add-guest-btn,
    .travel #add-guest-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        background: #007bff !important;
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .profile-accordion .accordion-item.travel #add-guest-btn:hover,
    .accordion-item.travel #add-guest-btn:hover,
    .travel #add-guest-btn:hover {
        background: #0056b3 !important;
        transform: translateY(-1px) !important;
    }

    .profile-accordion .accordion-item.travel .guest-counter,
    .accordion-item.travel .guest-counter,
    .travel .guest-counter {
        font-size: 12px !important;
        margin: 0 !important;
        color: #6c757d !important;
        font-weight: 500 !important;
    }
}

/* Guest Form Responsive Styles - Mirroring my-account.css */
/* Base guest header centering for all sizes */
.guest-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
}

.guest-title {
    text-align: center !important;
    margin: 0 !important;
}

.guest-icon {
    margin: 0 auto !important;
}

/* Override the registration-fixed.css rule that uses flex-start */
@media (min-width: 320px) and (max-width: 506px) {
    .accordion-item.travel .guest-header {
        align-items: center !important;
        text-align: center !important;
    }

    .accordion-item.travel .guest-title {
        text-align: center !important;
    }

    .accordion-item.travel .guest-icon {
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .guest-section {
        padding: 16px !important;
        border-radius: 10px !important;
        margin-top: 16px !important;
        background: #F8FAFC !important;
        border: 1px solid #E5E7EB !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }

    .guest-header {
        margin-bottom: 12px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        justify-content: center !important;
        display: flex !important;
    }

    .guest-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        background: linear-gradient(135deg, #10B981, #047857) !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
    }

    .guest-title {
        font-size: 13px !important;
        text-align: center !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
        margin: 0 !important;
    }

    .guest-controls {
        gap: 8px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    #add-guest-btn {
        width: 100% !important;
        max-width: 200px !important;
        font-size: 13px !important;
        padding: 8px 16px !important;
        background: #3B82F6 !important;
        border-color: #3B82F6 !important;
        font-weight: 500 !important;
    }

    #add-guest-btn:hover {
        background: #1D4ED8 !important;
        border-color: #1D4ED8 !important;
    }

    .guest-counter {
        font-size: 11px !important;
        text-align: center !important;
    }

    /* Guest Form Styles */
    .guest-form {
        background: #ffffff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 10px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }

    .guest-form-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #F3F4F6 !important;
    }

    .guest-number {
        font-weight: 600 !important;
        font-size: 13px !important;
        color: #1F2937 !important;
    }

    .remove-guest-btn {
        background: #EF4444 !important;
        color: white !important;
        border: none !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        cursor: pointer !important;
    }

    .guest-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .guest-form-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .guest-form-group label {
        font-weight: 500 !important;
        font-size: 12px !important;
        color: #374151 !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    .guest-form-group input,
    .guest-form-group select {
        padding: 8px 10px !important;
        border: 1px solid #D1D5DB !important;
        border-radius: 6px !important;
        font-size: 13px !important;
        background: #F9FAFB !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    .guest-form-group select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 8px center !important;
        background-size: 12px !important;
        padding-right: 32px !important;
    }

    .guest-form-group input:focus,
    .guest-form-group select:focus {
        outline: none !important;
        border-color: #3B82F6 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 1px #3B82F6 !important;
    }

    .guest-form-group input::placeholder {
        font-size: 13px !important;
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
}

@media (max-width: 576px) {
    .guest-section {
        padding: 12px !important;
        border-radius: 8px !important;
        margin-top: 12px !important;
    }

    .guest-header {
        margin-bottom: 10px !important;
        gap: 6px !important;
    }

    .guest-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
    }

    .guest-title {
        font-size: 12px !important;
    }

    .guest-controls {
        gap: 6px !important;
    }

    #add-guest-btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    .guest-counter {
        font-size: 10px !important;
    }

    .guest-form {
        padding: 12px !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
    }

    .guest-form-header {
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
    }

    .guest-number {
        font-size: 12px !important;
    }

    .remove-guest-btn {
        padding: 3px 6px !important;
        font-size: 10px !important;
        border-radius: 3px !important;
    }

    .guest-form-row {
        gap: 10px !important;
    }

    .guest-form-group {
        gap: 3px !important;
    }

    .guest-form-group label {
        font-size: 11px !important;
    }

    .guest-form-group input,
    .guest-form-group select {
        padding: 6px 8px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 36px !important;
    }

    .guest-form-group select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 6px center !important;
        background-size: 10px !important;
        padding-right: 28px !important;
    }
}

@media (max-width: 480px) {
    .guest-section {
        padding: 10px !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
    }

    .guest-header {
        margin-bottom: 8px !important;
        gap: 4px !important;
    }

    .guest-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .guest-title {
        font-size: 11px !important;
    }

    .guest-controls {
        gap: 4px !important;
    }

    #add-guest-btn {
        font-size: 11px !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        min-height: 36px !important;
    }

    .guest-counter {
        font-size: 9px !important;
    }

    .guest-form {
        padding: 10px !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
    }

    .guest-form-header {
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
    }

    .guest-number {
        font-size: 11px !important;
    }

    .remove-guest-btn {
        padding: 2px 5px !important;
        font-size: 9px !important;
        border-radius: 2px !important;
    }

    .guest-form-row {
        gap: 8px !important;
    }

    .guest-form-group {
        width: 100% !important;
        min-width: 0 !important;
    }

    .guest-form-group label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
        font-weight: 600 !important;
    }

    .guest-form-group input,
    .guest-form-group select {
        padding: 5px 7px !important;
        font-size: 11px !important;
        border-radius: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 34px !important;
        border: 1px solid #D1D5DB !important;
        background: #FAFAFA !important;
    }

    .guest-form-group select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 5px center !important;
        background-size: 8px !important;
        padding-right: 28px !important;
        background-color: #FAFAFA !important;
    }

    .guest-form-group input:focus,
    .guest-form-group select:focus {
        outline: none !important;
        border-color: #3B82F6 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 1px #3B82F6 !important;
    }

    .guest-form-group input::placeholder {
        font-size: 10px !important;
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
}

@media (max-width: 375px) {
    .guest-section {
        padding: 8px !important;
    }

    .guest-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
    }

    .guest-title {
        font-size: 10px !important;
    }

    #add-guest-btn {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .guest-counter {
        font-size: 8px !important;
    }

    .guest-form {
        padding: 8px !important;
    }

    .guest-number {
        font-size: 10px !important;
    }

    .remove-guest-btn {
        font-size: 8px !important;
    }

    .guest-form-group label {
        font-size: 9px !important;
    }

    .guest-form-group input,
    .guest-form-group select {
        font-size: 10px !important;
        padding: 4px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 32px !important;
        border: 1px solid #D1D5DB !important;
        background: #FAFAFA !important;
        border-radius: 3px !important;
    }

    .guest-form-group select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 4px center !important;
        background-size: 7px !important;
        padding-right: 20px !important;
        background-color: #FAFAFA !important;
    }

    .guest-form-group input::placeholder {
        font-size: 9px !important;
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
}

@media (max-width: 320px) {
    .guest-section {
        padding: 6px !important;
    }

    .guest-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
    }

    .guest-title {
        font-size: 9px !important;
    }

    #add-guest-btn {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    .guest-counter {
        font-size: 7px !important;
    }

    .guest-form {
        padding: 6px !important;
    }

    .guest-number {
        font-size: 9px !important;
    }

    .remove-guest-btn {
        font-size: 7px !important;
    }

    .guest-form-group label {
        font-size: 8px !important;
    }

    .guest-form-group input,
    .guest-form-group select {
        font-size: 9px !important;
        padding: 3px 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 30px !important;
        border: 1px solid #D1D5DB !important;
        background: #FAFAFA !important;
        border-radius: 2px !important;
    }

    .guest-form-group select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 3px center !important;
        background-size: 6px !important;
        padding-right: 18px !important;
        background-color: #FAFAFA !important;
    }

    .guest-form-group input::placeholder {
        font-size: 8px !important;
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
}

/* ========================================
   I'M LOOKING FOR ACCORDION FIXES - MOBILE ONLY
   ======================================== */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .looking-section .section-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .looking-section .section-icon {
        width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
        border-radius: 6px !important;
        color: white !important;
        font-size: 9px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Bed & Bath Section Header */
    .looking-section:not(.mb-4) .section-icon {
        background: linear-gradient(135deg, #059669, #047857) !important;
    }

    .looking-section .section-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .looking-section .section-header {
        gap: 7px !important;
    }

    .looking-section .section-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
    }

    .looking-section .section-title {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .looking-section .section-header {
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }

    .looking-section .section-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 7px !important;
    }

    .looking-section .section-title {
        font-size: 11px !important;
    }
}

/* ========================================
   ROOMMATE PREFERENCES ACCORDION FIXES - MOBILE ONLY
   ======================================== */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .preference-section .section-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .preference-section .section-icon {
        width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #EC4899, #DB2777) !important;
        border-radius: 6px !important;
        color: white !important;
        font-size: 9px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    .preference-section .section-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .preference-section .section-header {
        gap: 7px !important;
    }

    .preference-section .section-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
    }

    .preference-section .section-title {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .preference-section .section-header {
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }

    .preference-section .section-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 7px !important;
    }

    .preference-section .section-title {
        font-size: 11px !important;
    }
}

/* ========================================
   AMENITIES SECTION FIXES - MOBILE ONLY
   ======================================== */

/* Mobile responsive adjustments for dynamically loaded amenities */
@media (max-width: 768px) {
    .amenity-section .section-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .amenity-section .section-icon {
        width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #F59E0B, #D97706) !important;
        border-radius: 6px !important;
        color: white !important;
        font-size: 9px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    .amenity-section .section-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .amenity-section .section-header {
        gap: 7px !important;
    }

    .amenity-section .section-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
    }

    .amenity-section .section-title {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .amenity-section .section-header {
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }

    .amenity-section .section-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 7px !important;
    }

    .amenity-section .section-title {
        font-size: 11px !important;
    }
}

/* ========================================
   NAVIGATION BUTTONS SPACING FIXES - MOBILE ONLY
   ======================================== */

/* Reduce space between accordion and navigation buttons on mobile */
@media (max-width: 768px) {
    .row.mt-5 {
        margin-top: 2rem !important; /* Reduced from 3rem (mt-5) to 2rem */
    }
}

@media (max-width: 576px) {
    .row.mt-5 {
        margin-top: 1.5rem !important; /* Further reduced to 1.5rem */
    }
}

@media (max-width: 480px) {
    .row.mt-5 {
        margin-top: 1rem !important; /* Minimal spacing on very small screens */
    }

    /* Also reduce any padding/margin on the navigation buttons container */
    .navigation-btns {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ========================================
   STEP 1 BUTTON SPACING FIXES - MOBILE ONLY
   ======================================== */

/* Fix Monthly/Annually and Next button spacing on mobile */
@media (max-width: 768px) {
    /* Reduce spacing around Monthly/Annually buttons */
    #btn-sec {
        padding-top: 2rem !important; /* Reduced from py-5 (3rem) */
        padding-bottom: 2rem !important;
    }

    .btn-row {
        margin-bottom: 0 !important;
    }

    .btn-row .g-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Remove gap that causes stacking */
    .btn-row {
        /* gap: 8px !important; - removed to prevent stacking */
    }

    .btn-row .col-xl-6 {
        padding-left: 4px !important;
        padding-right: 4px !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    /* Ensure buttons stay inline on all mobile devices - but exclude Next button container */
    .btn-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* Target only the Monthly/Annually button containers with more specificity */
    .btn-row .col-xl-6.col-lg-6.col-md-6.col-sm-6.g-3 {
        display: inline-block !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    /* Force Monthly/Annually containers to stay inline */
    .btn-row .col-xl-6:nth-child(1),
    .btn-row .col-xl-6:nth-child(2) {
        display: inline-block !important;
        width: 50% !important;
        max-width: 50% !important;
        float: left !important;
        vertical-align: top !important;
    }

    /* Ensure Next button container stays full width and clears floats */
    .btn-row .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
    }

    /* Add clearfix to button row */
    .btn-row::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    /* Reduce top margin on Next button */
    .next-btn.mt-5 {
        margin-top: 1rem !important; /* Further reduced */
    }

    /* Reduce mt-3 class on Next button container */
    .col-12.mt-3 {
        margin-top: 0.75rem !important;
    }

    .next-btn {
        margin-top: 0 !important;
    }

    /* Make Monthly/Annually buttons smaller on tablets/mobile */
    .each-btn, .each-btn2 {
        padding: 12px !important;
        margin: 0 !important;
    }

    .monthly-btn, .annually-btn {
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    #btn-sec {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .btn-row .g-3 {
        margin-bottom: 0.25rem !important;
    }

    /* Remove gap that causes stacking */
    .btn-row {
        /* gap: 6px !important; - removed to prevent stacking */
    }

    /* Further reduce Next button spacing */
    .next-btn.mt-5 {
        margin-top: 0.5rem !important;
    }

    .col-12.mt-3 {
        margin-top: 0.5rem !important;
    }

    /* Keep Monthly/Annually buttons inline but smaller */
    .btn-row .col-xl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 3px !important;
        width: 50% !important;
        display: inline-block !important;
        float: none !important;
    }

    /* Ensure parent row stays horizontal but allow Next button to wrap */
    .btn-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* Target only the Monthly/Annually button containers for small screens */
    .btn-row .col-xl-6.col-lg-6.col-md-6.col-sm-6.g-3 {
        display: inline-block !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    .btn-row .col-xl-6:nth-child(1),
    .btn-row .col-xl-6:nth-child(2) {
        display: inline-block !important;
        width: 50% !important;
        max-width: 50% !important;
        float: left !important;
        vertical-align: top !important;
    }

    /* Ensure Next button container stays full width and clears floats */
    .btn-row .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
    }

    .btn-row::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    /* Make the buttons smaller */
    .each-btn, .each-btn2 {
        padding: 8px !important;
        margin: 0 !important;
    }

    .monthly-btn, .annually-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    #btn-sec {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .next-btn.mt-5 {
        margin-top: 0.25rem !important;
    }

    .col-12.mt-3 {
        margin-top: 0.25rem !important;
    }

    /* Remove gap that causes stacking */
    .btn-row {
        /* gap: 4px !important; - removed to prevent stacking */
    }

    .btn-row .g-3 {
        margin-bottom: 0.25rem !important;
    }

    /* Keep buttons inline but even smaller on very small screens */
    .btn-row .col-xl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 2px !important;
        width: 50% !important;
        display: inline-block !important;
        float: none !important;
    }

    /* Ensure parent row stays horizontal on very small screens but allow Next button to wrap */
    .btn-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* Target only the Monthly/Annually button containers for extra small screens */
    .btn-row .col-xl-6.col-lg-6.col-md-6.col-sm-6.g-3 {
        display: inline-block !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    .btn-row .col-xl-6:nth-child(1),
    .btn-row .col-xl-6:nth-child(2) {
        display: inline-block !important;
        width: 50% !important;
        max-width: 50% !important;
        float: left !important;
        vertical-align: top !important;
    }

    /* Ensure Next button container stays full width and clears floats */
    .btn-row .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
    }

    .btn-row::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    .each-btn, .each-btn2 {
        padding: 6px !important;
    }

    .monthly-btn, .annually-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 5px !important;
        min-height: 40px !important;
    }
}

/* ========================================
   ROOMMATE PREFERENCES FIXES
   ======================================== */

/* Roommate Schedule Options - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .roommate-schedule-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        justify-items: center !important;
    }

    .schedule-card {
        width: 100% !important;
        max-width: 160px !important;
    }

    .schedule-label {
        padding: 10px 8px !important;
        text-align: center !important;
        height: 85px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .schedule-icon {
        font-size: 16px !important;
    }

    .schedule-text {
        font-size: 12px !important;
    }

    .schedule-time {
        font-size: 10px !important;
    }
}

@media (max-width: 479px) {
    .roommate-schedule-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        justify-items: center !important;
        margin: 0 10px !important;
    }

    .schedule-card {
        width: 100% !important;
        max-width: 145px !important;
    }

    .schedule-label {
        padding: 8px 6px !important;
        text-align: center !important;
        height: 75px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .schedule-content {
        gap: 4px !important;
    }

    .schedule-icon {
        font-size: 14px !important;
    }

    .schedule-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .schedule-time {
        font-size: 9px !important;
    }
}

/* ========================================
   LOOKING FOR SECTION FIXES
   ======================================== */

/* Looking For Options - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .looking-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        justify-items: center !important;
    }

    .looking-card {
        width: 100% !important;
        max-width: 180px !important;
    }

    .looking-label {
        padding: 12px 10px !important;
        text-align: center !important;
    }

    .looking-icon {
        font-size: 20px !important;
    }

    .looking-text {
        font-size: 12px !important;
    }

    /* Bed Bath Container */
    .bed-bath-container {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .bed-bath-selector {
        width: 100% !important;
        max-width: 200px !important;
    }

    .bed-bath-select {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 35px 10px 15px !important;
    }

    .selector-icon {
        font-size: 14px !important;
    }

    .selector-label {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
}

@media (max-width: 479px) {
    .looking-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        justify-items: center !important;
        margin: 0 10px !important;
    }

    .looking-card {
        width: 100% !important;
        max-width: 160px !important;
    }

    .looking-label {
        padding: 10px 8px !important;
        text-align: center !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .looking-content {
        gap: 4px !important;
    }

    .looking-icon {
        font-size: 16px !important;
    }

    .looking-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    /* Bed Bath Container Mobile */
    .bed-bath-container {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        margin: 0 15px !important;
    }

    .bed-bath-selector {
        width: 100% !important;
        max-width: 180px !important;
    }

    .bed-bath-select {
        width: 100% !important;
        font-size: 14px !important;
        padding: 8px 30px 8px 12px !important;
        height: 40px !important;
    }

    .selector-icon {
        font-size: 12px !important;
    }

    .selector-label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
}

/* ========================================
   SOCIAL MEDIA SECTION FIXES
   ======================================== */

/* Social Media Block - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .social-block {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .social-box {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 15px 20px !important;
    }

    .social-box input {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px !important;
        border: none !important;
        background: transparent !important;
    }

    .social-box input::placeholder {
        font-size: 14px !important;
    }

    .social-box small {
        font-size: 11px !important;
    }

    .social-box .invalid-feedback,
    .social-box .valid-feedback {
        font-size: 11px !important;
        margin-top: 5px !important;
    }
}

@media (max-width: 479px) {
    .social-block {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .social-box {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 12px 15px !important;
    }

    .social-box input {
        width: 100% !important;
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 8px !important;
        border: none !important;
        background: transparent !important;
    }

    .social-box input::placeholder {
        font-size: 14px !important;
    }

    .social-box small {
        font-size: 10px !important;
    }

    .social-box .invalid-feedback,
    .social-box .valid-feedback {
        font-size: 10px !important;
        margin-top: 4px !important;
        padding: 4px 6px !important;
    }
}

/* ========================================
   NAVIGATION BUTTONS FIXES
   ======================================== */

/* Navigation Buttons - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .navigation-btns {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .continue-btn {
        flex: 0 0 auto !important;
        min-width: 120px !important;
    }

    .continue-btn a {
        padding: 15px 25px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        text-align: center !important;
        display: block !important;
        min-height: 44px !important; /* iOS touch target */
        line-height: 1.2 !important;
    }

    #skip-profile-btn a {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 2px solid #ddd !important;
    }

    #skip-profile-btn a:hover {
        background: #e0e0e0 !important;
        border-color: #bbb !important;
    }
}

@media (max-width: 479px) {
    .navigation-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 25px !important;
        padding: 0 20px !important;
    }

    .continue-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    .continue-btn a {
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        min-height: 44px !important; /* iOS touch target */
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    #skip-profile-btn a {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 2px solid #ddd !important;
    }

    #skip-profile-btn a:hover {
        background: #e0e0e0 !important;
        border-color: #bbb !important;
    }
}

/* ========================================
   TERMS AND CONDITIONS FIXES
   ======================================== */

/* Free User Terms - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    #free-user-terms {
        margin: 25px 15px !important;
        padding: 20px !important;
        border-radius: 8px !important;
    }

    #free-user-terms .checkbox-item {
        margin-bottom: 15px !important;
        gap: 12px !important;
    }

    #free-user-terms input[type="checkbox"] {
        margin-top: 2px !important;
    }

    #free-user-terms label {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 479px) {
    #free-user-terms {
        margin: 20px 10px !important;
        padding: 15px !important;
        border-radius: 6px !important;
    }

    #free-user-terms .checkbox-item {
        margin-bottom: 12px !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    #free-user-terms input[type="checkbox"] {
        margin-top: 3px !important;
        flex-shrink: 0 !important;
    }

    #free-user-terms label {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

/* ========================================
   PREMIUM UPGRADE OVERLAY FIXES
   ======================================== */

/* Premium Overlays - 480-767px */
@media (min-width: 480px) and (max-width: 767px) {
    .premium-upgrade-overlay {
        padding: 20px 15px !important;
        border-radius: 8px !important;
    }

    .premium-message {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }

    .premium-upgrade-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .premium-upgrade-btn i {
        margin-right: 6px !important;
    }
}

@media (max-width: 479px) {
    .premium-upgrade-overlay {
        padding: 15px 10px !important;
        border-radius: 6px !important;
    }

    .premium-message {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .premium-upgrade-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
        border-radius: 18px !important;
        min-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .premium-upgrade-btn i {
        margin-right: 4px !important;
        font-size: 10px !important;
    }
}

/* ========================================
   UTILITY FIXES FOR SMALL SCREENS
   ======================================== */

/* About Me Ultra-Compact for Very Small Screens */
@media (max-width: 350px) {
    /* Ultra-wide accordion for Galaxy A14 - Maximum Width */
    .build-profile {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .profile-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .profile-accordion {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .profile-accordion .accordion-body {
        padding: 12px 4px !important;
    }

    /* Bootstrap container - absolute minimal padding */
    .col-xl-10.colg-10.col-md-12.col-sm-12 {
        padding-left: 2px !important;
        padding-right: 2px !important;
        max-width: 100% !important;
    }

    .about-cards-container {
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .about-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }

    .about-card .card-header {
        margin-bottom: 8px !important;
        gap: 4px !important;
        padding-bottom: 6px !important;
    }

    .about-card .card-icon {
        font-size: 14px !important;
        color: #ffffff !important;
    }

    .about-card .card-title {
        font-size: 12px !important;
    }

    .about-card .card-subtitle {
        font-size: 9px !important;
    }

    .bio-card .card-content .bio-textarea {
        min-height: 60px !important;
        font-size: 13px !important;
        padding: 8px !important;
    }

    .bio-card .character-count {
        font-size: 9px !important;
    }

    .image-card .card-content {
        padding: 10px 8px !important;
    }

    .image-card .btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    #reg-preview-img {
        width: 80px !important;
        height: 80px !important;
    }

    .profession-card .profession-select {
        height: 40px !important;
        font-size: 13px !important;
        padding: 8px 30px 8px 10px !important;
    }
}

/* Force single column on very small screens */
@media (max-width: 350px) {
    /* Ultra-compact layouts for Galaxy A14 and similar */
    .gender-options,
    .traveling-options,
    .my-shift-schedule-options,
    .roommate-schedule-options,
    .looking-options {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin: 0 10px !important;
    }

    .gender-card,
    .traveling-card,
    .my-shift-card,
    .schedule-card,
    .looking-card {
        max-width: 250px !important;
        margin: 0 auto !important;
    }

    /* Compact accordion headers */
    .profile-accordion .accordion-button {
        font-size: 18px !important;
        padding: 10px 12px !important;
    }

    /* Compact navigation */
    .navigation-btns {
        padding: 0 15px !important;
    }

    .continue-btn {
        max-width: 260px !important;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Enhanced touch targets for mobile */
@media (max-width: 767px) {
    .gender-radio + .gender-label,
    .traveling-radio + .traveling-label,
    .my-shift-radio + .my-shift-label,
    .schedule-checkbox + .schedule-label,
    .looking-checkbox + .looking-label {
        min-height: 44px !important; /* iOS accessibility guidelines */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    /* Ensure form inputs meet accessibility standards */
    .profile-form .form-control,
    .social-box input,
    .bed-bath-select,
    .profession-select {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }

    /* Enhanced checkbox touch targets */
    input[type="checkbox"] {
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
}

/* ========================================
   FINAL DEVICE-SPECIFIC OPTIMIZATIONS
   ======================================== */

/* iPhone X (375px) specific fixes */
@media (max-width: 375px) {
    .profile-content {
        padding: 0 8px !important;
    }

    .profile-accordion .accordion-body {
        padding: 18px 12px !important;
    }
}

/* Galaxy A14 (360px) specific fixes */
@media (max-width: 360px) {
    .profile-form .row {
        padding: 0 8px !important;
    }

    .social-box {
        padding: 10px 12px !important;
    }

    .navigation-btns {
        padding: 0 15px !important;
    }
}

/* OnePlus 10 (393px) - slightly more room than iPhone X */
@media (min-width: 376px) and (max-width: 393px) {
    .gender-options,
    .my-shift-schedule-options,
    .looking-options {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .traveling-options {
        grid-template-columns: 1fr !important; /* Keep single column for travel options */
    }
}
