/* Unified Registration CSS - All registration flow styles */
/* Combined from: join-now.blade.php, my-profile.blade.php, billing-info.blade.php */
/* Fixed version with direct values instead of problematic CSS variables */

/* ========================================
   PROGRESS INDICATOR
   ======================================== */

.registration-progress {
    padding: 40px 0 20px;
    position: relative;
    z-index: 1000;
    text-align: center;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
   
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #5598E9;
    color: #fff;
}

.step.active .step-label {
    color: #5598E9;
    font-weight: 600;
}

.step.completed .step-circle {
    background: #28a745;
    color: #fff;
}

.step.completed .step-label {
    color: #28a745;
}

.step.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========================================
   STEP VISIBILITY
   ======================================== */

.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
}

/* ========================================
   STEP 1: HERO SECTION (Join-Now)
   ======================================== */

/* Hero Section - Matched to backup file styling */
section#join-sec {
    background-image: url(/media/join-now.png);
    background-size: cover;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: 70% 35%;
}

section#join-sec::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #5598e947 50%, #fff 100%);
}

.join-sec-content h1,
#step-title {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1.1;
    font-family: Montserrat, sans-serif !important;
}

.hero-col {
    position: relative;
    z-index: 999;
}

/* ========================================
   STEP 1: PLAN SELECTION
   ======================================== */

section#our-tier {
    margin-top: -40px;
    position: relative;
}

.title-col {
    padding: 0px 0px 29px !important;
}

.title-col h5 {
    font-weight: 500 !important;
    font-size: 23px !important;
    line-height: 1.25;
}

.plan-row {
    margin: 0 30px;
}

.each-plan {
    margin-bottom: 35px;
}

.each-tier {
    padding: 40px;
    margin: 20px 0;
    border-radius: 20px;
    height: 100%;
    position: relative;
}

.each-tier.tier-1 {
    background-color: #ACC6DD;
}

.each-tier.tier-2 {
    background-color: #5598E9;
    box-shadow: 0 14px 57px 5px rgba(0, 0, 0, 0.25);
}

.each-tier.tier-3 {
    background-color: #BFDAA4;
}

/* Selected plan visual feedback - Enhanced with multiple indicators */
.each-tier.selected {
    border: 4px solid #5598E9 !important;
    box-shadow: 0 0 25px rgba(85, 152, 233, 0.5), 0 8px 30px rgba(85, 152, 233, 0.3) !important;
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Special border color for premium plan (tier-2) when selected */
.each-tier.tier-2.selected {
    border: 4px solid #5555E9 !important;
    box-shadow: 0 0 25px rgba(85, 85, 233, 0.7), 0 8px 30px rgba(85, 85, 233, 0.4) !important;
}

/* Selected plan background overlay for stronger visual feedback */
.each-tier.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(85, 152, 233, 0.08);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above the overlay */
.each-tier.selected > * {
    position: relative;
    z-index: 1;
}

/* Selection checkmark indicator */
.each-tier .selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #28a745;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 10;
    animation: checkmarkBounce 0.3s ease-out;
}

.each-tier.selected .selection-indicator {
    display: flex;
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Additional bounce animation class for enhanced interactions */
.bounce-in {
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced button styling for selected plans */
.each-tier.selected .plan_btn {
    background: #28a745 !important;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    font-weight: 800 !important;
}

/* Hover effects should not interfere with selection */
.each-tier.selected .plan_btn:hover {
    background: #28a745 !important;
    transform: scale(1.05);
}

/* Plan title enhancement for selected state */
.each-tier.selected .plan_title {
    color: #5598E9;
    font-weight: 800;
}

/* Selected plan pulse effect */
.each-tier.selected {
    animation: selectedPulse 2s infinite;
}

@keyframes selectedPulse {
    0% {
        box-shadow: 0 0 25px rgba(85, 152, 233, 0.5), 0 8px 30px rgba(85, 152, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(85, 152, 233, 0.7), 0 8px 35px rgba(85, 152, 233, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(85, 152, 233, 0.5), 0 8px 30px rgba(85, 152, 233, 0.3);
    }
}

/* Clean and effective billing frequency button selection feedback */
.each-btn.selected a,
.each-btn2.selected a{
    border: 3px solid #5598E9 !important;
    box-shadow: 0 4px 20px rgba(85, 152, 233, 0.3) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Selected button background changes */
.each-btn.selected.tier-4 a {
    background: #ffffff !important;
    border-color: #5598E9 !important;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.each-btn2.selected.tier-4 a{
    background: #5598E9 !important;
    border-color: #5598E9 !important;
}

/* Enhanced text styling for selected buttons */
.each-btn.selected .monthly-btn {
    color: #5598E9 !important;
    font-weight: 700 !important;
}

.each-btn2.selected .annually-btn {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Hover effects for all buttons */
.each-btn.tier-4 a:hover,
.each-btn2.tier-4 a:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Slightly dim non-selected buttons when one is active */
.billing-buttons-active .each-btn:not(.selected),
.billing-buttons-active .each-btn2:not(.selected) {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Monthly/Annual Selection */
.btn-row {
    margin: 0 30px;
}

.each-btn.tier-4 a {
    border: 2px solid #000;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    background: #ffffff;
    transition: all 0.3s ease;
}

.each-btn2.tier-4 a{
    background: #000;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

a.monthly-btn,a.annually-btn {
    opacity: 1;
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.monthly-btn{
    color: #000;
}

a.annually-btn{
    color: #fff;
    background: transparent;
}

.next-btn a {
    background: #000;
    padding: 30px 85px;
    border-radius: 10px;
    text-align: center;
}

a.nxt-b {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

/* Plan selection buttons - match legacy CSS exactly */
.plan_btn {
    font-family: Montserrat;
    background: #76A7D2;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.plan_btn:hover {
    background: #000 !important;
    color: #fff;
}

/* Tier-specific button colors */
.tier-2 .plan_btn {
    background: #ACC6DD;
}

.tier-3 .plan_btn {
    background: #A0BA54;
}

/* ========================================
   STEP 2: PROFILE BUILDING (My-Profile)
   ======================================== */

/* Profile Content Container */
.profile-content {
    margin-top: -25px;
    z-index: 100;
    position: relative;
}

.profile-title {
    margin-bottom: 20px;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    padding-bottom: 15px;
}

/* Profile Accordion Styling */
.profile-accordion .accordion-item {
    border: 1px solid #D3D3D3;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0px 20px 50px 0px #0000001F;
}

.profile-accordion .accordion-button {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 36px;
    color: #313131;
    box-shadow: none;
    padding: 20px 25px;
}

.profile-accordion .accordion-button:not(.collapsed) {
    border-bottom: 1px solid #D3D3D3 !important;
    background-color: #fff !important;
}

.profile-accordion .accordion-button small {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 20px;
    color: #ACACAC !important;
    margin-top: 10px;
}

.profile-accordion .accordion-button::after {
    filter: invert(0.5); /* Makes arrow greyish */
}

.profile-accordion .accordion-header {
    border-bottom: none;
    position: relative; /* Added for Premium badge positioning */
}

/* Premium Badge Positioning - Moved outside button for proper centering */
.accordion-header .premium-badge {
    position: absolute;
    right: 60px; /* Position to the left of the collapse arrow */
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
    border: 2px solid rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
}

.accordion-header .premium-badge i {
    margin-right: 6px;
    font-size: 12px;
    color: #000;
}

.profile-accordion .accordion-body {
    padding: 50px 25px;
    font-size: 14px;
    color: #555;
    position: relative !important;
}

/* About Me Section */
.about-textarea {
    background-color: #f7f7f7;
    border: none;
    border-radius: 10px;
    resize: none;
    padding: 20px 15px;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    color: #000000b3;
}

.upload-box {
    background-color: #f7f7f7;
    border-radius: 10px;
    height: 100%;
    min-height: 160px;
    text-align: center;
    color: #000;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.upload-box i {
    color: #1a2746;
}

.upload-box .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 50px;
    margin-bottom: 15px;
}

.upload-box span {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 20px;
    color: #000000b3;
}

/* Gender Section */
.gender .accordion-body {
    padding: 50px 25px !important;
}

.gender-options {
    display: flex;
    gap: 3rem;
    padding-left: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #1C2A3A;
    cursor: pointer;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 20px;
    line-height: 14px;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #0d1b2a;
    border-radius: 2px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #5598E9;
    border-color: #5598E9;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Travel Section */
.travel .accordion-body {
    min-height: 300px;
    padding: 50px 25px !important;
}

/* Shift Schedule Section */
.shift .accordion-body {
    padding: 90px 35px!important;
}

.shift-schedule {
    gap: 10px;
}

.shift-btn {
    border: 2px solid #000;
    background: #fff;
    color: #333;
    padding: 25px 45px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 170px;
}

.shift-btn:hover {
    background: #f0f0f0;
}

.shift-btn.active {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

/* Roommate Schedule Section */
.roommate .accordion-body {
    padding: 30px 35px 80px!important;
}

.content-box p {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 25px;
    color: #000;
    padding-bottom: 15px;
}

/* Looking For Section */
.custom-check {
    width: 18px;
    height: 18px;
    border: 2px solid #0b132b;
    border-radius: 3px;
    cursor: pointer;
}

.custom-check:checked {
    background-color: #0b132b;
    border-color: #0b132b;
}

.bed-bath-box {
    background: #f7f7f7;
    padding: 20px 30px;
    border-radius: 8px;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    color: #000000b3;
    text-align: center;
    min-width: 180px;
}

.looking-for {
    margin-bottom: 40px;
}

.looking h6 {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 23px;
    color: #313131;
    /* padding-bottom: 15px; */
    text-align: center;
}

/* Amenities Section */
.amenities-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
}

/* Roommate Preferences Section */
.property-options {
    display: flex;
    gap: 25px 40px;
    margin-bottom: 25px;
}

/* Social Media Section */
.social-block {
    flex-wrap: wrap;
    justify-content: space-between;
}

.social-box {
    background: #f7f7f7;
    padding: 20px 30px;
    border-radius: 8px;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    color: #000000b3;
    text-align: left;
    width: 48%;
}

.social-box a {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    color: #000000b3;
    text-align: left;
}

/* Profile Form - Basic Information Fields */
.profile-form .form-control {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    height: 60px;
    box-shadow: none;
    color: #000;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid #d3d3d3;
}

.profile-form input::placeholder {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 152, 233, 0.25) !important;
}

/* Profile Hero Section */
section#profile-sec {
    background-image: url(/media/header-image.png);
    background-size: cover;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: 70% 50%;
}

section#profile-sec::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(287.63deg, rgba(0, 0, 0, 0.1) 55.15%, rgba(13, 50, 94, 0.98) 90.19%);
}

.profile-sec-content h1 {
    color: #000;
    font-weight: 700;
    font-size: 62px;
    line-height: 1.1;
}

/* Upload buttons */
.upload-group button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.upload-group button:hover {
    background: #5598E9;
}

/* Form sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    color: #313131;
}

/* Terms and Conditions for Free Users */
#free-user-terms {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

#free-user-terms .checkbox-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#free-user-terms input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0d1b2a;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

#free-user-terms input[type="checkbox"]:checked {
    background: #5598E9;
    border-color: #5598E9;
}

#free-user-terms input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#free-user-terms label {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    color: #313131;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-item label {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    color: #313131;
}

/* Select dropdowns */
.form-select {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    height: 60px;
    color: #000;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Continue button */
.continue-btn a {
    background: #000;
    padding: 30px 50px;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
}

.continue-btn a:hover {
    background: #4A90E2;
}

a.continue-b {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Skip button specific styling */
.continue-btn a[style*="background: #f8f9fa"] {
    background: #f8f9fa !important;
    border: 2px solid #000;
}

.continue-btn a[style*="background: #f8f9fa"]:hover {
    background: #e0e0e0 !important;
}

#skip-profile-btn a {
    background: rgb(248, 249, 250) !important;
    color: rgb(0, 0, 0) !important;
    display: block !important;
}
/* ========================================
   STEP 2: PROFILE PHOTO UPLOAD STYLES
   ======================================== */

/* Photo Upload Area */
.photo-upload-area {
    position: relative;
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.photo-upload-area.drag-over {
    border-color: #3B82F6;
    background: #EFF6FF;
    border-style: solid;
}

.upload-content {
    text-align: center;
    padding: 24px;
}

.upload-icon-large {
    font-size: 48px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.upload-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #374151;
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.upload-button {
    background: #3B82F6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.file-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    /* Remove pointer-events: none to allow programmatic clicks */
}

/* Photo Preview */
.photo-preview {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
}

.photo-preview .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-preview:hover .preview-overlay {
    opacity: 1;
}

.remove-photo-btn {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.remove-photo-btn:hover {
    background: #DC2626;
}

.preview-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bio Character Counter */
.character-count {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: #6B7280;
}

.char-warning {
    color: #F59E0B !important;
}

.char-danger {
    color: #EF4444 !important;
}

/* Bio Textarea */
.bio-textarea {
    background-color: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    resize: vertical;
    transition: border-color 0.2s ease;
    min-height: 120px;
    width: 100%;
}

.bio-textarea:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ========================================
   STEP 3: BILLING INFORMATION
   ======================================== */

/* Billing Hero Section */
section#bill-sec {
    background-image: url(/media/header-image.png);
    background-size: cover;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: 70% 50%;
}

section#bill-sec::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(287.63deg, rgba(0, 0, 0, 0.1) 55.15%, rgba(13, 50, 94, 0.98) 90.19%);
}

.bill-sec-content h1 {
    color: #000;
    font-weight: 700;
    font-size: 62px;
    line-height: 1.1;
}

/* Modern Billing Form with Credit Card Display */
section#info-sec {
    margin-top: -40px;
    position: relative;
    z-index: 100;
    padding: 60px 0;
    min-height: 100vh;
}

.info-con {
    padding: 40px 15px;
}

.info-row {
    margin-bottom: 60px;
}

.info-row .title-col h2 {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 48px;
    color: #1e293b;
    margin-bottom: 15px;
}

.info-row .title-col p {
    font-size: 20px;
    color: #64748b;
    margin: 0;
}

/* Modern Billing Container */
.modern-billing-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Credit Card Display */
.card-display-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    perspective: 1000px;
}

.credit-card {
    width: 400px;
    height: 250px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    margin: 0 auto;
}

.credit-card:hover {
    transform: translateY(-5px);
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.credit-card.flipped:hover {
    transform: rotateY(180deg) translateY(-5px);
}

.credit-card.focused {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
}

.card-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.card-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    z-index: 2;
}

/* Override for profession card - remove fixed height and space-between */
.profession-card .card-content {
    height: auto !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chip-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 20%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 30%, transparent 35%),
        linear-gradient(0deg, transparent 20%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 30%, transparent 35%);
}

.card-type {
    font-size: 32px;
    color: #fff;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 3px;
    margin: 20px 0;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder,
.card-expiry {
    display: flex;
    flex-direction: column;
}

.card-bottom .label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.card-bottom .name,
.card-bottom .date {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

/* Card Back Styling */
.magnetic-stripe {
    width: 100%;
    height: 50px;
    background: #000;
    margin-top: 20px;
    position: relative;
}

.cvv-box {
    position: absolute;
    top: 100px;
    right: 30px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cvv-label {
    font-size: 11px;
    color: #333;
    font-weight: 600;
}

.cvv-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    min-width: 30px;
}

.card-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Modern Form Cards */
.billing-form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 0 !important;
}

.billing-form-row > .col-lg-6,
.billing-form-row > .col-md-6 {
    flex: 1 1 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    width: auto !important;
    padding: 0 !important;
}

.modern-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: fit-content;
    width: 100% !important;
}

/* Combined Billing Card Layout */
.combined-billing-card {
    width: 100%;
    max-width: none;
}

.billing-sections {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.payment-section,
.billing-section {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their content size */
}

.subsection-title {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.subsection-title i {
    color: #5598E9;
    font-size: 16px;
}

/* Responsive adjustments for combined layout */
@media (max-width: 992px) {
    .billing-sections {
        flex-direction: column;
        gap: 30px;
    }

    .combined-billing-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .billing-sections {
        gap: 25px;
    }

    .combined-billing-card {
        padding: 25px;
    }

    .subsection-title {
        font-size: 16px;
    }

    /* Terms and Agreement Section Mobile Responsive Fixes */
    .terms-section {
        margin-top: 30px !important;
        width: 100% !important;
    }

    .terms-title {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    .terms-checkboxes {
        width: 100% !important;
    }

    .modern-checkbox-item {
        margin-bottom: 20px !important;
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .modern-checkbox {
        flex-shrink: 0 !important;
        margin-top: 2px !important;
        width: 16px !important;
        height: 16px !important;
    }

    .modern-checkbox-label {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        line-height: 1.4 !important;
        cursor: pointer !important;
    }

    .checkbox-indicator {
        flex-shrink: 0 !important;
        width: 16px !important;
        height: 16px !important;
        margin-top: 0 !important;
    }

    .checkbox-text {
        flex: 1 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .checkbox-text a {
        word-break: break-word !important;
    }

    .checkbox-text small {
        font-size: 12px !important;
        display: block !important;
        margin-top: 4px !important;
        line-height: 1.3 !important;
    }
}

.modern-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* padding-bottom: 15px; */
    /* border-bottom: 2px solid #e2e8f0; */
}

.section-title i {
    color: #5598E9;
    font-size: 20px;
}

/* Modern Form Groups */
.modern-form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: Montserrat;
    font-weight: 500;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #1e293b;
    min-height: 56px;
}

.modern-form-group input:focus {
    outline: none;
    background: #fff;
    border-color: #5598E9;
    box-shadow: 0 0 0 4px rgba(85, 152, 233, 0.1);
    transform: translateY(-1px);
}

.modern-form-group input:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #fff;
}

.modern-form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Card Input Wrapper */
.card-input-wrapper {
    position: relative;
}

.card-type-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #64748b;
    pointer-events: none;
}

/* Form Row Modern */
.form-row-modern {
    display: flex;
    gap: 20px;
}

.form-row-modern .modern-form-group {
    flex: 1;
}

/* CVV Help */
.cvv-help {
    margin-left: 5px;
    color: #64748b;
    cursor: help;
    font-size: 12px;
}

.cvv-help:hover {
    color: #5598E9;
}

/* Security Info */
.security-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.security-info i {
    font-size: 16px;
}

/* Stripe Card Element Styling */
.stripe-card-wrapper {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.stripe-card-wrapper:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.stripe-card-wrapper.focused {
    background: #fff;
    border-color: #5598E9;
    box-shadow: 0 0 0 4px rgba(85, 152, 233, 0.1);
    transform: translateY(-1px);
}

.stripe-card-wrapper.complete {
    border-color: #10b981;
    background: #f0fdfa;
}

.stripe-card-wrapper.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.stripe-card-element {
    width: 100%;
    font-family: Montserrat, sans-serif;
}

/* Enhanced card display animations */
.credit-card .card-number,
.credit-card .card-bottom .name,
.credit-card .card-bottom .date {
    transition: all 0.3s ease;
}

.credit-card .card-number.updating,
.credit-card .card-bottom .name.updating,
.credit-card .card-bottom .date.updating {
    transform: scale(1.02);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Total Section */
.total-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-display {
    background: linear-gradient(135deg, #5598E9, #667eea);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(85, 152, 233, 0.3);
}

.total-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    font-family: Montserrat;
}

/* Form Error Styling */
.form-error {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    margin-left: 4px;
    display: block;
    min-height: 18px;
}

.form-error:empty {
    display: none;
}

/* Input States */
.modern-form-group input.valid {
    border-color: #10b981;
    background: #f0fdfa;
}

.modern-form-group input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.modern-form-group input.valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.modern-form-group input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Card Type Specific Styling */
.modern-form-group input#cardNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    padding-right: 60px;
}

.modern-form-group input#expiry {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.modern-form-group input#cvv {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Form bottom section - Enhanced */
.form-con {
    margin-top: 40px;
    padding: 0 30px;
}

.form-section {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8e9ea;
}

.form-section .checkboxes {
    margin-bottom: 40px;
}

/* Enhanced Checkbox Styling for Billing Form */
.form-section .checkbox-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-section .checkbox-item input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #0d1b2a;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.form-section .checkbox-item input[type="checkbox"]:hover {
    border-color: #5598E9;
    box-shadow: 0 2px 8px rgba(85, 152, 233, 0.1);
}

.form-section .checkbox-item input[type="checkbox"]:checked {
    background: #5598E9;
    border-color: #5598E9;
    box-shadow: 0 2px 8px rgba(85, 152, 233, 0.2);
}

.form-section .checkbox-item input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-section .checkbox-item label {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    color: #313131;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

/* Section Titles for Billing Form */
.billing-section .section-title,
.payment-section .section-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 28px;
    color: #313131;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #5598E9;
    display: inline-block;
}

/* Error Message Styling */
.error-message {
    color: #dc3545;
    font-size: 14px;
    font-family: Montserrat;
    font-weight: 500;
    margin-top: 8px;
    min-height: 20px;
    display: block;
}

.error-message:empty {
    display: none;
}

/* Visually Hidden Labels for Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.total-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.total-text {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 22px;
    color: #313131;
    margin: 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e8e9ea;
}

/* Enhanced Submit Button */
.sub-btn {
    background: linear-gradient(135deg, #000, #333);
    padding: 24px 60px;
    border-radius: 12px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.sub-btn:hover {
    background: linear-gradient(135deg, #5598E9, #4A8AD4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 152, 233, 0.3);
}

a.sub-b {
    color: #fff;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Billing Form Responsive Design */

@media (max-width: 1200px) {
    .billing-form-row {
        gap: 20px;
    }

    .modern-form-card {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .form-content {
        padding: 40px 30px;
    }

    .form-row {
        gap: 20px;
    }

    .billing-form-row {
        gap: 15px;
    }

    .info-row .title-col h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .form-content {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .card-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group input {
        height: 70px;
        padding: 20px 16px;
        font-size: 18px;
    }

    .total-badge {
        height: 70px;
        padding: 20px 16px;
        font-size: 16px;
    }

    .info-row .title-col h2 {
        font-size: 32px;
    }

    .form-section {
        padding: 30px 20px;
    }

    .form-con {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    section#info-sec {
        padding: 40px 0;
    }

    .form-content {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .form-group input {
        height: 60px;
        padding: 16px 12px;
        font-size: 16px;
    }

    .form-group input::placeholder {
        font-size: 16px;
    }

    .total-badge {
        height: 60px;
        padding: 16px 12px;
        font-size: 14px;
    }

    .info-row .title-col h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .sub-btn {
        padding: 20px 40px;
        min-width: 150px;
    }

    a.sub-b {
        font-size: 16px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .form-section .checkbox-item label {
        font-size: 16px;
    }

    .total-text {
        font-size: 18px;
        padding: 15px 20px;
    }

    /* Enhanced Terms and Agreement Mobile Fixes for Very Small Screens */
    .terms-section {
        margin-top: 25px !important;
        padding: 15px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
    }

    .terms-title {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .terms-title i {
        font-size: 14px !important;
        margin-right: 6px !important;
    }

    .modern-checkbox-item {
        margin-bottom: 15px !important;
        padding: 8px !important;
        background: #fff !important;
        border-radius: 6px !important;
        border: 1px solid #e5e7eb !important;
    }

    .modern-checkbox {
        width: 14px !important;
        height: 14px !important;
        margin-top: 1px !important;
    }

    .checkbox-indicator {
        width: 14px !important;
        height: 14px !important;
    }

    .checkbox-text {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .checkbox-text small {
        font-size: 11px !important;
        margin-top: 3px !important;
    }

    /* Ensure SMS notification checkbox text doesn't overflow */
    .modern-checkbox-item:nth-child(3) .checkbox-text {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .modern-checkbox-item:nth-child(3) .checkbox-text .fa-mobile-alt {
        font-size: 12px !important;
        margin-right: 4px !important;
    }
}

/* ========================================
   MODERN CHECKBOX STYLING - STEP 3
   ======================================== */

/* Base Modern Checkbox Styles */
.modern-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-checkbox:hover {
    border-color: #5598E9;
    background: #f8fafc;
}

.modern-checkbox:checked {
    background: #5598E9;
    border-color: #5598E9;
}

.modern-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modern-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(85, 152, 233, 0.2);
}

/* Modern Checkbox Label */
.modern-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
    user-select: none;
    -webkit-user-select: none;
}

.checkbox-indicator {
    display: none; /* Hide the visual indicator span as we use the checkbox directly */
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
}

.checkbox-text a {
    color: #5598E9;
    text-decoration: none;
    border-bottom: 1px dotted #5598E9;
    transition: all 0.2s ease;
}

.checkbox-text a:hover {
    color: #4A8AD4;
    border-bottom-color: #4A8AD4;
    text-decoration: none;
}

/* Terms Section Container */
.terms-section {
    margin-top: 30px;
    padding: 0;
}

.terms-title {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-title i {
    color: #5598E9;
    font-size: 16px;
}

.terms-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-checkbox-item {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modern-checkbox-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.modern-checkbox-item:has(.modern-checkbox:checked) {
    background: #eff6ff;
    border-color: #5598E9;
}

/* Mobile Touch Enhancements */
@media (max-width: 768px) {
    .modern-checkbox {
        width: 16px;
        height: 16px;
        touch-action: manipulation;
    }

    .modern-checkbox:checked::after {
        left: 3px;
        top: 0px;
        width: 4px;
        height: 8px;
    }

    .modern-checkbox-label {
        gap: 10px;
        font-size: 14px;
        min-height: 44px; /* Ensures touch-friendly target */
        align-items: center;
        padding: 0 0 8px 0;
    }

    .modern-checkbox-item {
        padding: 12px;
        min-height: 60px; /* Touch-friendly target */
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .modern-checkbox {
        width: 14px;
        height: 14px;
    }

    .modern-checkbox:checked::after {
        left: 2.5px;
        top: -0.5px;
        width: 3.5px;
        height: 7px;
    }

    .modern-checkbox-label {
        font-size: 13px;
        gap: 8px;
        min-height: 48px;
    }

    .modern-checkbox-item {
        padding: 10px;
        min-height: 56px;
    }

    .checkbox-text small {
        font-size: 11px;
        margin-top: 4px;
        display: block;
    }
}

@media (max-width: 360px) {
    .modern-checkbox {
        width: 12px;
        height: 12px;
    }

    .modern-checkbox:checked::after {
        left: 2px;
        top: -1px;
        width: 3px;
        height: 6px;
    }

    .modern-checkbox-label {
        font-size: 12px;
        gap: 6px;
        min-height: 44px;
    }

    .modern-checkbox-item {
        padding: 8px;
        min-height: 52px;
    }

    .checkbox-text small {
        font-size: 10px;
        margin-top: 3px;
    }

    .terms-title {
        font-size: 13px !important;
    }

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

/* ========================================
   FREEMIUM LOCKED SECTIONS
   ======================================== */

/* Premium upgrade overlay */
.premium-upgrade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
}

.premium-message {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 18px;
    color: #5598E9;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.premium-upgrade-btn {
    background: linear-gradient(135deg, #5598E9, #667eea);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 152, 233, 0.3);
    text-decoration: none;
    display: inline-block;
}

.premium-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(85, 152, 233, 0.4);
    color: #fff;
    text-decoration: none;
}

.premium-upgrade-btn i {
    margin-right: 8px;
}

/* Locked section container */
.locked-section {
    position: relative;
    overflow: hidden;
}

.locked-section .accordion-body {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

/* Locked field styles */
.locked-fields {
    filter: blur(1.5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.locked-fields input,
.locked-fields textarea,
.locked-fields select {
    background: #f0f0f0 !important;
    cursor: not-allowed !important;
}

.locked-fields .form-control {
    background: #f0f0f0 !important;
    cursor: not-allowed !important;
}

/* Premium badge for locked sections */
.premium-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: Montserrat;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.premium-badge i {
    margin-right: 4px;
    font-size: 10px;
}

/* Plan selection state tracking */
.plan-selected {
    box-shadow: 0 0 20px rgba(85, 152, 233, 0.4) !important;
    border: 3px solid #5598E9 !important;
}

.plan-free-selected {
    box-shadow: 0 0 20px rgba(172, 198, 221, 0.4) !important;
    border: 3px solid #ACC6DD !important;
}

/* Responsive adjustments for premium overlays */
@media (max-width: 768px) {
    .premium-upgrade-overlay {
        padding: 15px;
    }

    .premium-message {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .premium-upgrade-btn {
        padding: 10px 25px;
        font-size: 13px;
    }

    .premium-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .premium-upgrade-overlay {
        padding: 12px;
    }

    .premium-message {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .premium-upgrade-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

/* Pulse animation for premium plan highlighting */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(85, 152, 233, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(85, 152, 233, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(85, 152, 233, 0.6);
    }
}

/* ========================================
   CTA SECTION (Common across all steps)
   ======================================== */

/* CTA section - match backup file exactly (rely on legacy CSS for everything else) */
#cta_sec {
    height: 385px !important;
}

.background-video {
    object-position: 82% 36%;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.cta-logo img {
    max-width: 100px;
    margin-bottom: 20px;
}

.modal h1 {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 20px;
}

.modal p {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 15px;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn-prime,
.btn-sec {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-prime {
    background: #5598E9;
    color: #fff;
}

.btn-prime:hover {
    background: #000;
    color: #fff;
}

.btn-sec {
    background: #f8f9fa;
    color: #000;
    border: 2px solid #000;
}

.btn-sec:hover {
    background: #000;
    color: #fff;
}

.disclaimer {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Billing period label styling */
.plan_title .price .billing-period {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    margin-left: 5px;
    vertical-align: baseline;
    opacity: 0.9;
}

.tier-2 .plan_title .price .billing-period {
    color: #fff;
}

/* ========================================
   RESPONSIVE DESIGN (From Backup File)
   ======================================== */

@media(max-width:1024px){
    section#join-sec{
        min-height: 320px;
    }
    .tier-3 .list {
        margin: 10px auto;
        width: 80%;
    }
}

@media(max-width:768px){
    .tier-3 .list {
        width: 100% !important;
        columns: 1 !important;
    }
    .tier-con {
        max-width: 100%;
    }
    .btn-cont{
        max-width: 100%;
    }
    .next-btn{
        width:50% !important;
    }
}

@media (min-width: 320px) and (max-width: 480px){
    #cta_sec{
        height:auto !important;
    }
    .next-btn {
        width: 95% !important;
    }
    .join-sec-content h1{
        font-size:40px !important;
    }
    .title-col h2{
        font-size:32px !important;
    }
    .title-col h5{
        font-size:16px !important;
    }
}

@media(max-width:480px){
    .plan-row{
        margin:0px;
    }
    .each-plan{
        padding:0px;
    }
    .each-tier{
        padding:20px;
    }
    .title_head h5{
        font-size:20px;
    }
    .title_head h3{
        font-size:40px;
    }
    ul.list{
        padding-bottom:20px;
    }
    ul.list li{
        font-size:16px;
        margin-bottom:10px;
    }
    .plan_title .price{
        font-size:35px;
    }
    .plan_title .price sup{
        font-size:30px;
    }
    .plan_title .price .billing-period {
        font-size: 14px;
    }
    .last-plan {
        padding: 0px;
    }
}

/* nim24-9-25 */

@media(max-width:576px){
    .btn-cont .btn-row {
        margin: 0px !important;
    }
    section#btn-sec {
        padding-top: 0px !important;
    }
    /* 3rd pg */
    .join-sec-content h1, #step-title{
        font-size: 42px !important;
    }
    .registration-progress{
        padding:0px !important;
    }
    .info-row .title-col h2{
            font-size: 35px !important;
    }
    .info-row.title-col h5{
        font-size: 22px !important;
    }
    .info-row .title-col {
    padding: 0px 30px !important;
    }
    .form-row-modern{
        flex-direction: column !important;
    }
    .shift .accordion-body {
        padding: 50px 15px!important;
    }

    /* Billing Breakdown Mobile Fixes */
    .billing-breakdown-section {
        order: 1 !important;
        margin-top: 20px !important;
        width: 100% !important;
    }

    .billing-breakdown {
        padding: 15px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
    }

    .breakdown-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    .breakdown-items {
        font-size: 12px !important;
    }

    .breakdown-item {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }

    .breakdown-item.total-item {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .item-price {
        font-weight: 600 !important;
    }

}

/* ========================================
   SOCIAL MEDIA VALIDATION STYLES
   ======================================== */

/* Social media input validation styles */
.social-url-input.is-invalid {
    border-color: #e74c3c !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
    background-color: #fef2f2 !important;
}

.social-url-input.is-valid {
    border-color: #28a745 !important;
    border-width: 1px !important;
    box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.25) !important;
    background-color: #f0fdfa !important;
}

/* Social media error message styling */
.social-box .invalid-feedback {
    color: #e74c3c !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
    background: rgba(231, 76, 60, 0.1) !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    border-left: 3px solid #e74c3c !important;
    font-family: Montserrat, sans-serif !important;
    line-height: 1.4 !important;
}

/* Success state for social media inputs */
.social-box .valid-feedback {
    color: #28a745 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
    background: rgba(40, 167, 69, 0.1) !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    border-left: 3px solid #28a745 !important;
    font-family: Montserrat, sans-serif !important;
    line-height: 1.4 !important;
}

/* Animation for error messages */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Apply animations to error messages */
.social-box .invalid-feedback {
    animation: slideInError 0.3s ease-out;
}

/* Enhanced social media input focus states */
.social-url-input:focus {
    border-color: #5598E9 !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 152, 233, 0.25) !important;
    background-color: #fff !important;
}

/* Responsive adjustments for social media validation */
@media (max-width: 768px) {
    .social-box {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .social-block {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .social-box {
        padding: 15px 20px !important;
    }

    .social-url-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

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

/* ============================= */
/* BASE ACCORDION STYLES */
/* Copy from my-account.css for proper mobile responsive behavior */
/* ============================= */

/* Gender Options */
.gender-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gender-card {
    position: relative;
}

.gender-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.gender-label {
    display: block;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gender-label:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.gender-radio:checked + .gender-label {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-color: #3B82F6;
    color: white;
}

.gender-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gender-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gender-text {
    font-weight: 600;
    font-size: 14px;
}

/* Traveling Options */
.traveling-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.traveling-card {
    position: relative;
}

.traveling-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.traveling-label {
    display: block;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.traveling-label:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.traveling-radio:checked + .traveling-label {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-color: #3B82F6;
    color: white;
}

.traveling-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.traveling-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.traveling-text {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.traveling-desc {
    font-size: 12px;
    opacity: 0.8;
}

/* My Shift Schedule */
.my-shift-schedule-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.my-shift-card {
    position: relative;
}

.my-shift-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.my-shift-label {
    display: block;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.my-shift-label:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.my-shift-radio:checked + .my-shift-label {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-color: #3B82F6;
    color: white;
}

.my-shift-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.my-shift-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.my-shift-text {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.my-shift-time {
    font-size: 11px;
    opacity: 0.8;
}

/* ============================= */
/* MOBILE RESPONSIVE FIXES - Profile Accordions */
/* Same fixes as my-account.css for join-now step 2 */
/* ============================= */

/* 480px - 767px: Medium Mobile Devices (iPhone 16 Pro Max, etc.) */
@media (min-width: 480px) and (max-width: 767px) {
    /* Profile Photo Section - About Me Accordion */
    .tab-content .profile-image-section,
    .accordion-body .profile-image-section,
    .accordion-item .profile-image-section,
    .profile-image-section {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    /* All Accordion Sections - 2 Column Layout (Higher specificity) */
    .profile-accordion .accordion-item.gender .gender-options,
    .profile-accordion .accordion-item.travel .traveling-options,
    .profile-accordion .accordion-item.shift .my-shift-schedule-options,
    .profile-accordion .accordion-item.looking .looking-options,
    .profile-accordion .accordion-item.amenities .amenity-options,
    .profile-accordion .accordion-item.preferences .preference-options {
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* Roommate Schedule - Special 2 Column Layout (Higher specificity) */
    .profile-accordion .accordion-item.roommate .roommate-schedule-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        justify-items: center !important;
        align-items: stretch !important;
    }

    /* All Cards - Uniform Sizing (Higher specificity) */
    .profile-accordion .accordion-item.gender .gender-card,
    .profile-accordion .accordion-item.travel .traveling-card,
    .profile-accordion .accordion-item.shift .my-shift-card,
    .profile-accordion .accordion-item.roommate .schedule-card,
    .profile-accordion .accordion-item.looking .looking-card,
    .profile-accordion .accordion-item.amenities .amenity-card,
    .profile-accordion .accordion-item.preferences .preference-card {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Special single-row layout for accordions with only 2 options (Higher specificity) */
    .profile-accordion .accordion-item.gender .gender-options,
    .profile-accordion .accordion-item.travel .traveling-options {
        gap: 12px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Profession select consistency */
    .profession-select {
        font-size: 14px !important;
    }
}

/* SMALL MOBILE DEVICES - 0px - 479px */
@media (max-width: 479px) {
    /* Profile Photo Section - About Me Accordion */
    .tab-content .profile-image-section,
    .accordion-body .profile-image-section,
    .accordion-item .profile-image-section,
    .profile-image-section {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    /* All Accordions - Compact 2 Column Layout on Small Screens (Higher specificity) */
    .profile-accordion .accordion-item.gender .gender-options,
    .profile-accordion .accordion-item.travel .traveling-options,
    .profile-accordion .accordion-item.shift .my-shift-schedule-options,
    .profile-accordion .accordion-item.roommate .roommate-schedule-options,
    .profile-accordion .accordion-item.looking .looking-options,
    .profile-accordion .accordion-item.amenities .amenity-options,
    .profile-accordion .accordion-item.preferences .preference-options {
        gap: 8px !important;
    }

    /* Special single-row layout for accordions with only 2 options */
    .accordion-item.gender .gender-options,
    .accordion-item.travel .traveling-options {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* All Cards - Compact for 2-Column Layout */
    .accordion-item.gender .gender-card,
    .accordion-item.travel .traveling-card,
    .accordion-item.shift .my-shift-card,
    .accordion-item.roommate .schedule-card,
    .accordion-item.looking .looking-card,
    .accordion-item.amenities .amenity-card,
    .accordion-item.preferences .preference-card {
        max-width: 180px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Fix profession select dropdown arrow overlap */
    .profession-select {
        padding-right: 60px !important;
        font-size: 13px !important;
    }

    .select-icon {
        right: 20px !important;
        font-size: 14px !important;
    }
}

/* VERY SMALL DEVICES - 320px - 350px */
@media (max-width: 350px) {
    /* Single column for complex accordions to prevent overflow */
    .accordion-item.amenities .amenity-options,
    .accordion-item.preferences .preference-options,
    .accordion-item.looking .looking-options {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .accordion-item.amenities .amenity-card,
    .accordion-item.preferences .preference-card,
    .accordion-item.looking .looking-card {
        max-width: 280px !important;
    }

    /* Make traveling accordion cards uniform size */
    .accordion-item.travel .traveling-card {
        min-width: 120px !important;
        max-width: 120px !important;
        width: 120px !important;
        flex: 0 0 120px !important;
    }

    .accordion-item.travel .traveling-label {
        width: 120px !important;
        height: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Override roommate-preferences.css with higher specificity */
    .roommate-schedule-section .schedule-card {
        min-width: 120px !important;
        max-width: 120px !important;
        width: 120px !important;
        flex: 0 0 120px !important;
    }

    .roommate-schedule-section .schedule-label {
        padding: 8px 4px !important;
        font-size: 10px !important;
        width: 120px !important;
        height: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .accordion-item.roommate .roommate-schedule-options {
        margin: 0 15px !important;
    }
}

/* SMALL TO MEDIUM MOBILE DEVICES - 320px to 506px */
@media (min-width: 320px) and (max-width: 506px) {
    /* Travel companion accordion specific fixes */
    .profile-accordion .accordion-item.travel .traveling-options {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        max-width: none !important;
        margin: 0 15px !important;
    }

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

    .profile-accordion .accordion-item.travel .traveling-label {
        padding: 16px 12px !important;
        font-size: 14px !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }

    /* Guest form fixes - specific to travel companion accordion */
    .accordion-item.travel .guest-section {
        margin: 0 10px !important;
        padding: 12px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }

    .accordion-item.travel .guest-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 5px !important;
        margin-bottom: 10px !important;
    }

    .accordion-item.travel .guest-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        margin-right: 8px !important;
    }

    .accordion-item.travel .guest-title {
        font-size: 14px !important;
        margin: 0 !important;
    }

    .accordion-item.travel .guest-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    .accordion-item.travel #add-guest-btn {
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        min-width: 100px !important;
    }

    .accordion-item.travel .guest-counter {
        font-size: 11px !important;
        text-align: right !important;
        margin: 0 !important;
        flex: 1 !important;
    }

    /* Guest forms container */
    .accordion-item.travel .guest-forms-container {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Profile form responsive fixes */
    .profile-form .row {
        margin: 0 !important;
        padding: 0 15px !important;
    }

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

    .profile-form .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .profile-form .date-wrapper {
        position: relative !important;
        width: 100% !important;
    }

    .profile-form .date-label {
        font-size: 12px !important;
        margin-top: 5px !important;
    }

    .profile-form .password-input-container {
        width: 100% !important;
    }

    .profile-form .toggle_password {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }

    /* Profile content responsive */
    .profile-content {
        padding: 0 10px !important;
    }

    .build-profile {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .profile-title {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
}

/* EXTRA SMALL DEVICES - 320px and below */
@media (max-width: 320px) {
    /* Form fixes for very small screens */
    .profile-form .row {
        padding: 0 5px !important;
    }

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

    .profile-form .form-control {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

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

    .build-profile {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .profile-title {
        font-size: 18px !important;
    }

    /* Guest form fixes for very small screens */
    .accordion-item.travel .guest-section {
        margin: 0 5px !important;
        padding: 8px !important;
        width: calc(100% - 10px) !important;
    }

    .accordion-item.travel .guest-controls {
        flex-direction: column !important;
        gap: 5px !important;
        align-items: stretch !important;
    }

    .accordion-item.travel #add-guest-btn {
        width: 100% !important;
        min-width: auto !important;
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    .accordion-item.travel .guest-counter {
        text-align: center !important;
        font-size: 10px !important;
    }

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

    /* Force single column for all accordions on very small screens */
    .profile-accordion .accordion-item.gender .gender-options,
    .profile-accordion .accordion-item.travel .traveling-options,
    .profile-accordion .accordion-item.shift .my-shift-schedule-options,
    .profile-accordion .accordion-item.roommate .roommate-schedule-options,
    .profile-accordion .accordion-item.looking .looking-options,
    .profile-accordion .accordion-item.amenities .amenity-options,
    .profile-accordion .accordion-item.preferences .preference-options {
        gap: 8px !important;
        margin: 0 !important;
    }

    /* Ultra-compact cards for 320px screens */
    .profile-accordion .accordion-item .gender-card,
    .profile-accordion .accordion-item .traveling-card,
    .profile-accordion .accordion-item .my-shift-card,
    .profile-accordion .accordion-item .schedule-card,
    .profile-accordion .accordion-item .looking-card,
    .profile-accordion .accordion-item .amenity-card,
    .profile-accordion .accordion-item .preference-card {
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    /* Ultra-compact labels */
    .profile-accordion .accordion-item .gender-label,
    .profile-accordion .accordion-item .traveling-label,
    .profile-accordion .accordion-item .my-shift-label,
    .profile-accordion .accordion-item .schedule-label,
    .profile-accordion .accordion-item .looking-label,
    .profile-accordion .accordion-item .amenity-label,
    .profile-accordion .accordion-item .preference-label {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }

    /* Override traveling cards to be normal size instead of forced square */
    .profile-accordion .accordion-item.travel .traveling-card {
        width: auto !important;
        min-width: auto !important;
        max-width: 260px !important;
        flex: none !important;
    }

    .profile-accordion .accordion-item.travel .traveling-label {
        width: auto !important;
        height: auto !important;
        padding: 12px 8px !important;
    }

    /* Override roommate schedule to be normal size */
    .roommate-schedule-section .schedule-card {
        width: auto !important;
        min-width: auto !important;
        max-width: 260px !important;
        flex: none !important;
    }

    .roommate-schedule-section .schedule-label {
        width: auto !important;
        height: auto !important;
        padding: 12px 8px !important;
    }
}

/* ========================================
   PLAN SELECTION UX IMPROVEMENTS
   ======================================== */

/* Highlight billing frequency buttons after plan selection */
.highlight-billing-option {
    animation: pulseHighlight 1s ease-in-out 2;
    box-shadow: 0 0 20px rgba(85, 152, 233, 0.6) !important;
}

@keyframes pulseHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(85, 152, 233, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(85, 152, 233, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(85, 152, 233, 0.6);
    }
}

/* Highlight next button after free plan selection */
.highlight-next-action {
    animation: glowPulse 1s ease-in-out 2;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(85, 152, 233, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(85, 152, 233, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(85, 152, 233, 0.5);
    }
}


/* Enhanced button positioning for pointer */
.each-btn, .each-btn2 {
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .highlight-billing-option {
        animation: pulseHighlightMobile 1s ease-in-out 2;
    }
    
    @keyframes pulseHighlightMobile {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
    }
}
