/* Signup Modal Styles */

/* Modal Overlay */
.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signup-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.signup-modal {
    background: white;
    border-radius: 16px;
    width: 950px; /* Fixed width instead of responsive */
    height: 800px; /* Set to 800px as requested */
    max-width: 950px; /* Further reduced from 1100px for even more compact design */
    max-height: 800px; /* Set maximum height to 800px */
    overflow: visible; /* Show all content without scrolling */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(30px);
    transition: all 0.3s ease;
    margin: 10px; /* Removed extra bottom margin - footer back inside */
}

.signup-modal-overlay.active .signup-modal {
    transform: scale(1) translateY(0);
}

/* Close Button */
.signup-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #666;
}

.signup-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.05);
}

.signup-modal-close svg {
    width: 18px;
    height: 18px;
}

/* Modal Header */
.signup-modal-header {
    text-align: center;
    padding: 25px 40px 15px; /* Reduced from 40px 40px 20px to bring content up */
}

.signup-modal-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.signup-modal-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Progress Indicator */
.signup-progress {
    padding: 0 40px 5px; /* Reduced from 20px to 10px to bring content up */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.signup-progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.signup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #11A191, #0E897F);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 25%;
}

.signup-progress-counter {
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Tab Navigation */
.signup-tab-navigation {
    display: flex;
    padding: 20px 50px 20px; /* Match content padding (50px like modal body) */
    gap: 2px; /* Small gap for visual separation */
    border-bottom: none; /* Remove border for cleaner look */
    background: #F8FAFC; /* Subtle background matching website design */
    border-radius: 12px 12px 0 0; /* Rounded top corners */
    margin: 0 0 20px 0; /* No negative margins - align with content */
}

.signup-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 161, 145, 0.1);
    padding: 14px 12px; /* Better padding for premium feel */
    font-size: 0.875rem;
    font-weight: 600; /* Slightly bolder */
    color: #666;
    cursor: pointer;
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy easing for hover effect */
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    letter-spacing: 0.025em; /* Better typography */
}

.signup-tab-btn:hover:not(.active):not(.disabled) {
    color: #11a191;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px) scale(1.02); /* Enhanced lift and slight scale */
    box-shadow: 0 4px 16px rgba(17, 161, 145, 0.2);
    border-color: rgba(17, 161, 145, 0.4);
}

.signup-tab-btn.active {
    color: #11a191; /* Use website's primary color */
    background: white;
    border-color: #11a191;
    border-bottom: 3px solid #11a191; /* Thicker bottom border */
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(17, 161, 145, 0.15); /* Colored shadow */
    z-index: 2; /* Bring active tab forward */
}

/* Remove green tick on completed tabs */
.signup-tab-btn.completed::after {
	content: none;
	display: none;
}

/* Optional: keep completed tabs styled minimally or same as default */
.signup-tab-btn.completed {
	background: transparent;
	color: inherit;
	border-color: #e5e5e5;
}

/* Disabled state for signup tabs until Basic Info valid */
.signup-tab-btn.disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

/* Modal Body */
.signup-modal-body {
    margin-top: -20px;
    padding: 5px 50px 80px; /* Increased bottom padding for footer space */
    min-height: 680px; /* Reduced to leave room for footer buttons inside */
    height: 680px; /* Fixed height for 800px modal with footer inside */
    overflow-y: visible; /* Show all content without scrolling */
}

/* Steps Container */
.signup-step {
    display: none;
    animation: fadeIn 0.3s ease;
    height: auto; /* Auto height to fit content naturally */
    width: 100%; /* Take full width of parent */
    overflow-y: visible; /* Show all content without scrolling */
}

.signup-step.active {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure active step uses full width */
}

.signup-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 580px; /* Reduced to leave room for footer buttons inside */
    height: 580px; /* Fixed height - footer back inside modal */
    width: 100%; /* Ensure full width usage */
    overflow-y: visible; /* Show all content without scrolling */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.signup-step-content p {
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Form Styling */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure full width usage */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 1;
    align-content: start;
    min-height: 320px; /* Reduced from 350px to better fit in the reduced modal height */
    width: 100%; /* Ensure full width usage */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%; /* Ensure full width within grid cell */
}

.form-group.full-width {
    grid-column: 1 / -1;
    width: 100%; /* Ensure full width spanning both columns */
}

/* New Basic Info Tab Redesign - Full Width Layout */
.basic-info-container {
    width: 120%; /* Further reduced from 130% to fit even narrower modal */
    min-width: 700px; /* Reduced from 800px to match even narrower modal */
    max-width: none;
    padding: 0px 0; /* Added padding for better spacing */
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    height: 540px; /* Reduced to leave room for footer buttons inside */
    min-height: 540px; /* Minimum height with footer inside */
    overflow-y: visible; /* Show all content without scrolling */
}

.basic-info-row {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* First row with Full Name and Email gets reduced gap for wider fields */
.basic-info-row:first-child {
    gap: 1rem; /* Reduced from 1.5rem to give more space to the fields */
}

.basic-info-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.basic-info-field.basic-info-full {
    flex: 1;
    width: 100%;
}

.basic-info-field.basic-info-wide {
    flex: 2; /* Increased from 1 to 2 for significantly wider Full Name and Email fields */
    min-width: 200px; /* Ensure minimum width for better user experience */
}

.basic-info-field.basic-info-narrow {
    flex: 0.5;
    min-width: 100px;
}

.basic-info-field label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.basic-info-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.basic-info-field input:focus {
    outline: none;
    border-color: #11A191;
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.12);
}

.basic-info-field .error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.basic-info-field.error .error-message {
    display: block;
}

.basic-info-field.error input {
    border-color: #dc2626;
}

.basic-info-field.error input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Social Profiles Tab - Single Column Layout */
.social-profiles-container {
    width: 100%;
    max-width: none;
    padding: 0px 0; /* Reduced padding to bring fields up and make more compact */
    margin: 0;
    margin-top: -15px !important;
    display: flex;
    flex-direction: column;
    gap: 2.0rem; /* Reduced gap to 0.1rem between social media items */
    height: 540px; /* Reduced to leave room for footer buttons inside */
    min-height: 540px; /* Minimum height with footer inside */
    overflow-y: visible; /* Show all content without scrolling */
}

.social-profile-field {
    width: 100%;
    min-width: 700px;
    /* max-width: 1200px; Increased from 1000px to 1200px (additional 200px) */
    margin: 0 auto; /* Center the fields */
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* Reduced gap between label and input for compactness */
}

.social-profile-field label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0; /* Removed margin since we have gap in parent */
    display: block;
    text-align: left;
}

.social-profile-field input {
    width: 100%;
    padding: 10px 16px; /* Reduced padding from 14px to 10px for shorter height */
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    height: 44px; /* Set explicit height for consistency and compactness */
}

.social-profile-field input:focus {
    outline: none;
    border-color: #11a191; /* Use website's primary color */
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1);
}

.social-profile-field input::placeholder {
    color: #999;
    font-style: italic;
}

.form-group label {
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%; /* Ensure inputs use full width of their container */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #11A191;
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.12);
}

/* Location row layout for City, State/Province, Country */
.location-row {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem to 1rem for better horizontal space usage */
    width: 100%;
    justify-content: stretch; /* Ensure fields use full available space */
}

.location-row .location-city {
    flex: 1 1 0;
    min-width: 0;
}

.location-row .location-state {
    flex: 1 1 0;
    min-width: 0;
}

.location-row .location-country {
    flex: 1 1 0;
    min-width: 0;
}

.location-row .form-group input {
    padding: 12px 16px;
    font-size: 1rem;
    min-height: 48px;
    box-sizing: border-box;
    width: 100%; /* Ensure location inputs use full width of their flex container */
}

/* Mobile: Make location fields full width and stacked */
@media screen and (max-width: 768px) {
    .location-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .location-row .location-city,
    .location-row .location-state,
    .location-row .location-country {
        flex: none;
        width: 100%;
    }
    
    .location-row .form-group input {
        width: 100%;
    }
}

/* Error messages */
.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Legacy signup form styles for backwards compatibility */
.signup-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1; /* Take available space in step content */
    align-content: start; /* Align content to top */
    height: 540px; /* Reduced to leave room for footer buttons inside */
    min-height: 540px; /* Minimum height with footer inside */
    overflow-y: visible; /* Show all content without scrolling */
}

/* Experience tab top spacing adjustment */
#signupStep4 .signup-form-grid {
    margin-top: -20px; /* Pull content up by 20px as requested */
}

/* Experience tab layout: left question with radios, right panel for textarea */
.experience-row {
    display: grid;
    grid-template-columns: auto 1fr; /* Left fits content (question), right fills */
    column-gap: 50px; /* 50px gap between question and box */
    row-gap: 20px;
    align-items: start;
    min-height: 150px; /* Reserve space so second question doesn't jump */
    margin-left: -20px; /* shift entire row 10px left */
}

.experience-left {
    display: flex;
    flex-direction: column;
}

.experience-right-panel {
    display: block; /* Always reserve layout space */
    visibility: visible;
    opacity: 1;
}

/* First panel (attendance) remains visible when not active; use .locked to dim */
#signupAttendanceExperiencePanel:not(.active) {
    visibility: visible;
    opacity: 1;
    transition: opacity 250ms ease;
}

/* When visible, ensure full height with no internal scroll */
.experience-right-panel .signup-textarea-container textarea {
    width: calc(100% + 270px); /* Increased total width by an additional 50px */
    min-height: 150px; /* reduced by 30px */
    height: 150px; /* reduced by 30px */
    resize: none;
    padding: 5px 5px 24px 5px; /* 5px inner padding; keep 24px bottom for counter */
}

/* Place character count inside the box at lower-left for Experience panel */
#signupAttendanceExperiencePanel .signup-character-count {
    left: 405px;
    bottom: 10px;
}

/* Move the second question (organized) 50px down */
#organizedQuestionContainer {
    margin-top: 60px; /* moved further down by 10px */
}

/* Character counter position for organized panel (lower-right) */
#signupOrganizedExperiencePanel .signup-character-count {
    left: auto;
    right: 12px;
    bottom: 10px;
}

.signup-form-group {
    display: flex;
    flex-direction: column;
}

.signup-form-group.full-width {
    grid-column: 1 / -1;
}

.signup-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* About You – raise the Bio label slightly */
label[for="signupBio"] {
    margin-top: -30px;
}

/* Red asterisk for required fields in Basic Info */
label[for="signupFullName"]::after,
label[for="signupEmail"]::after,
label[for="signupAffiliation"]::after {
    content: " *";
    color: #dc2626; /* red */
}

.signup-form-group input,
.signup-form-group textarea,
.signup-form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Keep typed characters uppercase for state/province, but keep placeholder lowercase */
#signupStateProvince {
    text-transform: uppercase;
}

#signupStateProvince::placeholder {
    text-transform: none;
}

.signup-form-group input:focus,
.signup-form-group textarea:focus,
.signup-form-group select:focus {
    outline: none;
    border-color: #11A191;
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.12);
}

.signup-form-group.error input,
.signup-form-group.error textarea,
.signup-form-group.error select {
    border-color: #dc2626;
}

.signup-form-group.error input:focus,
.signup-form-group.error textarea:focus,
.signup-form-group.error select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Error Messages */
.signup-error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.signup-form-group.error .signup-error-message {
    display: block;
}


/* Location Row */
.signup-location-row {
    display: flex;
    gap: 16px;
}

.signup-location-row .signup-form-group {
    flex: 1;
}

/* Textarea Container */
.signup-textarea-container {
    position: relative;
}

.signup-textarea-container textarea {
    resize: vertical;
    min-height: 100px;
    padding-bottom: 24px;
}

/* About You – Bio field: full width, taller, no internal scroll */
#signupBio {
    width: 780px; /* fixed to decouple from sibling widths */
    max-width: 100%;
    box-sizing: border-box;
    /* margin-top: -10px; */
    min-height: 125px; /* Reduced by 100px */
    height: 125px;
    resize: none; /* Prevent manual resizing to keep layout stable */
    overflow: hidden; /* Hide textarea scrollbars; content is capped at 300 chars */
}

/* Category and subcategory row layout */
.signup-category-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.signup-category-row .signup-form-group {
    flex: 1;
}

/* Shift the second (subcategory) dropdown to the right */
.signup-category-row .signup-form-group:last-child {
    margin-left: 0px;
}

/* Add spacing for the label following the dropdowns */
.signup-category-row + .signup-form-group.full-width {
    margin-top: 10px;
    visibility: hidden; /* reserve space so layout doesn't move */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 1000ms ease, transform 1000ms ease;
    pointer-events: none;
}

/* Category select styling inside About You */
#signupCategorySelect {
    width: 380px; /* fixed to decouple from sibling widths */
    /* max-width: 100%; */
    color: #333;
}

#signupCategorySelect.placeholder {
    color: #999; /* grey placeholder */
    font-style: italic;
}

/* Subcategory select styling - matches category select */
#signupSubcategorySelect {
    width: 380px; /* fixed to decouple from sibling widths */
    /* max-width: 100%; */
    color: #333;
}

#signupSubcategorySelect:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

#signupSubcategorySelect.placeholder {
    color: #999; /* grey placeholder */
    font-style: italic;
}

.signup-character-count {
    position: absolute;
    bottom: 15px;
    right: 30px !important; /* shifted 10px to the right */
    font-size: 0.75rem;
    color: #888;
    pointer-events: none;
}

/* Bio textarea counter: shift 300px left from the global position */
#signupBio + .signup-character-count {
    right: 10px;
}

/* Radio Group */
.signup-experience-question {
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
    display: block;
    font-size: 1rem;
}

/* Keep Experience question on one line */
#signupStep4 .signup-experience-question {
    white-space: nowrap;
}

.signup-radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

/* Experience tab: shift question + answers 15px left */
#signupStep4 .signup-experience-question,
#signupStep4 .signup-radio-group {
    margin-left: -20px;
}

/* Ensure both questions share identical style */
#organizedQuestionContainer .signup-experience-question {
    font-weight: 600; /* Match first question font-weight */
    color: #334155; /* Match first question color */
    margin-bottom: 16px;
    display: block;
    font-size: 1rem;
    white-space: nowrap; /* keep in one line like the first question */
    margin-left: -30px; /* 5px further left than the base -20px */
    margin-top: -20px; /* move question up by 20px */
}

.signup-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem; /* Match first question choices */
    color: #475569; /* Match consistent color across all questions */
    font-weight: 500; /* Match consistent weight across all questions */
}

/* Shift organized Yes/No radios 5px further left */
#organizedQuestionContainer .signup-radio-group {
    margin-left: -30px; /* 5px further left than the base -20px */
    margin-top: 0px; /* move radios up by 10px (down 10 from previous) */
}

.signup-radio-option input[type="radio"] {
    display: none;
}

.signup-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.signup-radio-option input[type="radio"]:checked + .signup-radio-custom {
    border-color: #11A191;
}

.signup-radio-option input[type="radio"]:checked + .signup-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #11A191;
    border-radius: 50%;
}

/* Modal Footer - Inside modal, positioned in corners */
.signup-modal-footer {
    position: absolute;
    bottom: 20px; /* Position at bottom of modal */
    left: 20px;
    right: 20px;
    width: calc(100% - 40px); /* Account for left/right positioning */
    height: 60px; /* Fixed height for button positioning */
    padding: 0;
    background: transparent;
    border: none;
    pointer-events: none; /* Allow clicks to pass through container */
}

/* Buttons */
.signup-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    pointer-events: all; /* Enable clicks on buttons */
    position: absolute; /* Absolute positioning for corner placement */
    z-index: 10; /* Ensure buttons are clickable */
}

/* Previous button always goes to lower left corner */
#signupPrevBtn {
    left: 0;
    bottom: 0;
}

/* Next and Submit buttons always go to lower right corner */
#signupNextBtn,
#signupSubmitBtn {
    right: 0;
    bottom: 0;
}

/* Terms and Conditions notice in footer */
.signup-terms-notice {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    margin: 0;
    pointer-events: auto;
    max-width: 400px;
    line-height: 1.4;
}

.signup-terms-notice a {
    color: #11A191;
    text-decoration: none;
    transition: color 0.2s ease;
}

.signup-terms-notice a:hover {
    color: #0E897F;
    text-decoration: underline;
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Click/press animation for action buttons */
.signup-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.signup-btn-primary:active:not(:disabled) {
    background: #0D7E75; /* slightly darker than hover */
    box-shadow: 0 2px 8px rgba(17, 161, 145, 0.25);
}

.signup-btn-secondary:active:not(:disabled) {
    background: #eef2f3;
    border-color: #cfd6da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Springy release animation via class toggle */
@keyframes signupButtonPressBounce {
    0% { transform: scale(0.98); }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.signup-btn.press-animate {
    animation: signupButtonPressBounce 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.signup-btn-primary {
    background: #11A191;
    color: white;
}

.signup-btn-primary:hover:not(:disabled) {
    background: #0E897F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 161, 145, 0.3);
}

.signup-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e5e5e5;
}

.signup-btn-secondary:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #d1d5db;
    color: #333;
    transform: translateY(-1px);
}

/* Loading Spinner */
.signup-loading-spinner {
    animation: spin 1s linear infinite;
}

.signup-loading-spinner svg {
    width: 16px;
    height: 16px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.signup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

.signup-notification-success {
    background: #10b981;
    color: white;
}

.signup-notification-error {
    background: #dc2626;
    color: white;
}

.signup-notification-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.signup-notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media screen and (max-width: 1000px) {
    .signup-modal {
        width: 95vw; /* Responsive width but maintain aspect ratio */
        height: 800px; /* Set to 800px as requested */
        max-width: 950px; /* Maximum width limit */
        max-height: 800px; /* Set maximum height to 800px */
        margin: 15px; /* Removed extra bottom margin - footer back inside */
    }
}

@media screen and (max-width: 768px) {
    /* MOBILE REDESIGN - Phone-Optimized Layout */
    
    /* Modal Container - Optimized for phones */
    .signup-modal {
        width: 92vw;
        height: auto;
        max-height: 85vh;
        max-width: 92vw;
        margin: 40px auto;
        padding-bottom: 20px; /* Extend container 10px downward for more breathing room */
        overflow: hidden;
        border-radius: 20px;
    }
    
    /* Close Button - Larger touch target */
    .signup-modal-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
    }
    
    .signup-modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    /* Header - Compact and Clean */
    .signup-modal-header {
        padding: 20px 20px 12px;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    }
    
    .signup-modal-header h2 {
        font-size: 1.5rem;
        margin-bottom: 4px;
        font-weight: 700;
    }
    
    .signup-modal-header p {
        font-size: 0.85rem;
        color: #64748b;
    }
    
    /* Progress Bar - Simplified */
    .signup-progress {
        padding: 8px 20px;
        gap: 12px;
    }
    
    .signup-progress-bar {
        height: 6px;
        background: #e2e8f0;
        border-radius: 3px;
    }
    
    .signup-progress-fill {
        background: linear-gradient(90deg, #11A191, #0E897F);
        border-radius: 3px;
    }
    
    .signup-progress-counter {
        font-size: 0.8rem;
        font-weight: 600;
        color: #11A191;
    }
    
    /* Tab Navigation - Mobile Optimized */
    .signup-tab-navigation {
        padding: 12px 12px 0;
        gap: 6px;
        margin: 0;
        background: transparent;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .signup-tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .signup-tab-btn {
        flex: 1;
        min-width: 70px;
        padding: 10px 8px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 10px 10px 0 0;
        background: #f1f5f9;
        border: none;
        color: #64748b;
        transition: all 0.2s ease;
    }
    
    .signup-tab-btn.active {
        background: white;
        color: #11A191;
        box-shadow: 0 -2px 8px rgba(17, 161, 145, 0.1);
    }
    
    .signup-tab-btn.completed {
        color: #10b981;
    }
    
    .signup-tab-btn.disabled {
        opacity: 0.4;
    }
    
    /* Modal Body - Scrollable Content Area */
    .signup-modal-body {
        padding: 20px;
        height: auto;
        max-height: 50vh;
        min-height: auto;
        margin-top: 15px; /* Ensure scrollable content starts below tabs */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Form Elements - Touch-Friendly */
    .basic-info-container {
        gap: 14px;
    }
    
    .basic-info-row {
        flex-direction: column;
        gap: 14px;
    }
    
    .basic-info-field {
        width: 100%;
    }
    
    .basic-info-field label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: 6px;
        display: block;
    }
    
    .basic-info-field input {
        width: calc(100% - 380px); /* Reduce by 20px from each side for centered look */
        padding: 14px 16px;
        font-size: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        transition: all 0.2s ease;
        -webkit-appearance: none;
        appearance: none;
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    .basic-info-field input:focus {
        border-color: #11A191;
        outline: none;
        box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1);
    }
    
    .basic-info-field input::placeholder {
        color: #94a3b8;
    }
    
    .basic-info-field.error input {
        border-color: #ef4444;
    }
    
    .error-message {
        font-size: 0.75rem;
        color: #ef4444;
        margin-top: 4px;
        display: none;
    }
    
    .basic-info-field.error .error-message {
        display: block;
    }
    
    /* Social Profiles - Stack Vertically */
    .social-profiles-container {
        display: flex;
        flex-direction: column;
        gap: 35px; /* Extra breathing room between the four fields */
        height: auto;
        min-height: auto;
        padding: 0;
        overflow-y: visible;
    }
    
    .social-profile-field {
        width: 100%;
        margin: 0;
        gap: 6px;
    }
    
    .social-profile-field label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #334155;
    }
    
    .social-profile-field input {
        width: calc(100% - 380px); /* Trim 20px from each side so fields sit centered */
        padding: 14px 16px;
        font-size: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        height: auto;
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    .social-profile-field input:focus {
        border-color: #11A191;
        box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1);
    }
    
    /* About You Tab */
    .signup-form-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }
    
    .signup-form-group {
        width: 100%;
    }
    
    .signup-form-group label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: 6px;
        display: block;
    }
    
    .signup-form-group select,
    .signup-form-group textarea {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        color: #1e293b;
    }
    
    .signup-form-group select {
        width: calc(100% - 0px) !important; /* Reduce dropdown width by 400px from right */
        min-height: 58px; /* Increase height by 10px for better tap target */
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    .signup-form-group select:focus,
    .signup-form-group textarea:focus {
        border-color: #11A191;
        outline: none;
        box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1);
    }
    
    .signup-form-group textarea {
        min-height: 100px;
        resize: vertical;
        font-family: inherit;
        line-height: 1.5;
    }
    
    .signup-character-count {
        font-size: 0.75rem;
        color: #64748b;
        margin-top: 4px;
        text-align: right;
        display: block;
    }
    
    .signup-textarea-container {
        position: relative;
    }
    
    /* Category/Subcategory Row */
    .signup-category-row {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100% !important;
    }
    
    /* Category and Subcategory Dropdowns - consistent styling */
    #signupCategorySelect,
    #signupSubcategorySelect {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.75rem 1rem !important;
        padding-right: 2.5rem !important;
        font-size: 0.98rem !important;
        height: auto !important;
        min-height: 50px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        background: white !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 1rem center !important;
        background-size: 12px !important;
        color: #333 !important;
    }
    
    #signupCategorySelect:focus,
    #signupSubcategorySelect:focus {
        border-color: #11A191 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1) !important;
    }
    
    #signupSubcategorySelect:disabled {
        background-color: #f5f5f5 !important;
        color: #999 !important;
        cursor: not-allowed !important;
    }
    
    /* Experience Tab */
    .experience-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .experience-left {
        width: 100%;
    }
    
    .signup-experience-question {
        font-size: 0.95rem; /* Match radio option font size for consistency */
        font-weight: 600;
        color: #334155;
        margin-bottom: 12px;
        display: block;
        line-height: 1.4;
        margin-left: -50px !important; /* Move question text 10px left on phones */
    }
    
    .signup-radio-group {
        display: flex;
        gap: 16px;
        justify-content: flex-start;
        margin-bottom: 16px;
        margin-left: -50px !important; /* Align Yes/No controls 10px left with question text */
    }
    
    .signup-radio-option {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 500;
        color: #475569;
    }
    
    .signup-radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: #11A191;
    }
    
    .experience-right-panel {
        width: 100%;
        display: block; /* Always show on mobile */
        margin-top: -10px; /* Move up by 10px (8px - 10px = -2px) */
        margin-left: 15px; /* Move right by 10px */
    }
    
    /* Locked state styling for mobile */
    .experience-right-panel.locked textarea {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        opacity: 0.7;
    }
    
    .experience-right-panel textarea {
        width: calc(100% - 10px) !important; /* Reduce width by 200px from the right */
        padding: 14px 16px;
        font-size: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        min-height: 100px;
        font-family: inherit;
        line-height: 1.5;
        resize: vertical;
    }
    
    .experience-right-panel textarea:focus {
        border-color: #11A191;
        outline: none;
        box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.1);
    }
    
    .experience-right-panel textarea:disabled {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
        opacity: 0.7;
    }
    
    /* Override desktop width for organized experience textarea on mobile */
    #signupOrganizedExperiencePanel .signup-textarea-container textarea {
        width: calc(100% + 10px) !important; /* Keep original mobile width */
    }
    
    /* Override desktop width for attendance experience textarea on mobile */
    #signupAttendanceExperiencePanel .signup-textarea-container textarea {
        width: calc(100% - 10px) !important; /* Keep original mobile width */
    }
    
    /* Override desktop grid layout for organized question container on mobile */
    #organizedQuestionContainer {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        column-gap: 0 !important;
        margin-left: -20px !important; /* Move left by 10px */
        margin-top: 20px !important; /* Move up by 30px */
    }
    
    #organizedQuestionContainer .signup-experience-question,
    #organizedQuestionContainer .signup-radio-group {
        grid-column: unset !important;
    }
    
    #organizedQuestionContainer #signupOrganizedExperiencePanel {
        grid-column: unset !important;
        margin-top: 8px !important; /* Space below the Yes/No choices */
        margin-left: 15px !important; /* Match the first textarea alignment */
    }
    
    /* Redesigned Yes/No options for "Have you ever..." question on mobile */
    #organizedQuestionContainer .signup-radio-group {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        margin-left: 15px !important; /* Shift group 30px right on phones */
    }
    
    #organizedQuestionContainer .signup-radio-option {
        flex: 1 1 0 !important; /* Equal-width buttons */
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 65px !important; /* Increase width by 10px */
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        background: white !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        min-height: 48px !important;
        gap: 0 !important;
    }
    
    #organizedQuestionContainer .signup-radio-option:hover {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
    }
    
    #organizedQuestionContainer .signup-radio-option:active {
        transform: scale(0.98) !important;
    }
    
    /* Hide native radio button and custom radio circle */
    #organizedQuestionContainer .signup-radio-option input[type="radio"] {
        display: none !important;
    }
    
    #organizedQuestionContainer .signup-radio-option .signup-radio-custom {
        display: none !important;
    }
    
    /* Selected state styling */
    #organizedQuestionContainer .signup-radio-option:has(input[type="radio"]:checked) {
        border-color: #11A191 !important;
        background: #f0fdf9 !important;
        color: #0E897F !important;
    }

    /* Button-style Yes/No controls for first question ("Can our app...") */
    #signupStep4 .experience-left .signup-radio-group {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        margin-left: 15px !important;
    }

    #signupStep4 .experience-left .signup-radio-option {
        flex: 1 1 0 !important; /* Equal-width buttons */
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        background: white !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        min-height: 48px !important;
        gap: 0 !important;
    }

    #signupStep4 .experience-left .signup-radio-option:hover {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
    }

    #signupStep4 .experience-left .signup-radio-option:active {
        transform: scale(0.98) !important;
    }

    #signupStep4 .experience-left .signup-radio-option input[type="radio"],
    #signupStep4 .experience-left .signup-radio-option .signup-radio-custom {
        display: none !important;
    }

    #signupStep4 .experience-left .signup-radio-option:has(input[type="radio"]:checked) {
        border-color: #11A191 !important;
        background: #f0fdf9 !important;
        color: #0E897F !important;
    }
    
    /* Modal Footer - Fixed at Bottom */
    .signup-modal-footer {
        padding: 12px 20px 20px;
        background: white;
        border-top: 1px solid #e2e8f0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px 12px; /* row-gap column-gap */
        position: sticky;
        bottom: 0;
        z-index: 10;
        height: auto; /* Override desktop fixed height */
        width: auto; /* Override desktop width */
        left: auto;
        right: auto;
        pointer-events: auto; /* Override desktop pointer-events: none */
    }
    
    .signup-btn {
        position: static; /* Override desktop absolute positioning */
        flex: 1 1 auto;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 12px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        min-width: 100px;
        white-space: nowrap;
    }
    
    .signup-btn-secondary {
        background: #f1f5f9;
        color: #64748b;
    }
    
    .signup-btn-secondary:active {
        background: #e2e8f0;
    }
    
    .signup-btn-primary {
        background: linear-gradient(135deg, #11A191 0%, #0E897F 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(17, 161, 145, 0.3);
    }
    
    .signup-btn-primary:active {
        transform: scale(0.98);
    }
    
    .signup-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    /* Terms notice - Mobile */
    .signup-terms-notice {
        position: static;
        transform: none;
        order: -1; /* Place BEFORE buttons in flex layout */
        width: 100%;
        flex: 0 0 100%; /* Don't grow, don't shrink, take full width */
        margin-bottom: 4px;
        margin-top: 0;
        padding: 0;
        font-size: 0.65rem;
        max-width: none;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Interest Fields - Mobile */
    .signup-additional-fields {
        width: 100%;
        margin-top: 12px;
    }
    
    .signup-additional-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .signup-additional-field input {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.9rem;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
        height: auto;
    }
    
    .signup-additional-field input.interest-selected {
        background: #e6f7f5;
        border-color: #11A191;
        color: #0E897F;
        font-weight: 600;
    }
    
    .signup-additional-field input.interest-locked {
        opacity: 0.4;
        background: #f1f5f9;
    }
    
    /* Notifications */
    .signup-notification {
        top: 16px;
        right: 16px;
        left: auto;
        bottom: auto;
        max-width: 280px;
        width: auto;
        margin: 0;
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    /* VERY SMALL PHONES - Further Optimizations */
    
    .signup-modal {
        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
        margin: 20px auto;
        padding-bottom: 20px; /* Maintain extra height at the bottom on small phones */
        border-radius: 16px;
    }
    
    .signup-modal-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }
    
    .signup-modal-header {
        padding: 16px 16px 10px;
    }
    
    .signup-modal-header h2 {
        font-size: 1.35rem;
        margin-bottom: 4px;
    }
    
    .signup-modal-header p {
        font-size: 0.8rem;
    }
    
    .signup-progress {
        padding: 6px 16px;
        gap: 10px;
    }
    
    .signup-progress-counter {
        font-size: 0.75rem;
    }
    
    .signup-tab-navigation {
        padding: 10px 8px 0;
        gap: 4px;
    }
    
    .signup-tab-btn {
        min-width: 65px;
        padding: 9px 6px;
        font-size: 0.7rem;
        border-radius: 8px 8px 0 0;
    }
    
    .signup-modal-body {
        padding: 16px;
        max-height: 55vh;
        margin-top: 15px; /* Prevent overlap with tab navigation on very small phones */
    }
    
    .basic-info-container,
    .social-profiles-container,
    .signup-form-grid {
        gap: 22px;
    }
    
    .basic-info-field label,
    .social-profile-field label,
    .signup-form-group label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .social-profiles-container {
        gap: 35px; /* Maintain the extra spacing between social fields on the smallest phones */
    }
    
    .social-profile-field input {
        width: calc(100% - 380px); /* Same centered width reduction used on larger phones */
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    .basic-info-field input {
        width: calc(100% - 380px); /* Match mobile adjustment: 20px less on each side */
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 10px;
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    .social-profile-field input,
    .signup-form-group input,
    .signup-form-group select,
    .signup-form-group textarea,
    .experience-right-panel textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .signup-form-group select {
        width: calc(100% - 0px) !important; /* Reduce dropdown width by 400px from right on small phones */
        min-height: 58px; /* Increase height by 10px on very small phones */
        /* margin: 0 auto; */
        /* display: block; */
    }
    
    /* Category and Subcategory Dropdowns - consistent styling for very small phones */
    #signupCategorySelect,
    #signupSubcategorySelect {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.75rem 1rem !important;
        padding-right: 2.5rem !important;
        font-size: 0.95rem !important;
        height: auto !important;
        min-height: 50px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        background: white !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 1rem center !important;
        background-size: 12px !important;
        color: #333 !important;
    }
    
    .signup-form-group textarea,
    .experience-right-panel textarea {
        min-height: 90px;
    }
    
    .signup-character-count {
        font-size: 0.7rem;
    }
    
    .signup-experience-question {
        font-size: 0.95rem; /* Keep questions consistent with the Yes/No options */
        margin-bottom: 10px;
        margin-left: 20px !important; /* Shift text to the right on very small phones */
    }
    
    .signup-radio-group {
        margin-left: 20px !important; /* Align Yes/No options with the question text */
    }
    
    .signup-radio-option {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .signup-radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }
    
    .signup-modal-footer {
        padding: 10px 16px 16px;
        gap: 6px 10px;
    }
    
    .signup-btn {
        position: static; /* Override desktop absolute positioning */
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    /* Terms notice - Very small phones */
    .signup-terms-notice {
        font-size: 0.6rem;
        margin-bottom: 2px;
    }
    
    .signup-additional-field input {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .signup-notification {
        top: 14px;
        right: 14px;
        left: auto;
        bottom: auto;
        max-width: 240px;
        width: auto;
        padding: 12px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}

/* Make second Experience question layout match first question */
#organizedQuestionContainer {
    display: grid;
    grid-template-columns: auto 1fr; /* Left: question + radios, Right: textarea */
    column-gap: 50px;
    align-items: start;
    margin-left: -10px; /* shift entire organized block 10px left */
}

#organizedQuestionContainer .signup-experience-question,
#organizedQuestionContainer .signup-radio-group {
    grid-column: 1; /* Keep label and radios in the left column */
}

#organizedQuestionContainer #signupOrganizedExperiencePanel {
    grid-column: 2; /* Place textarea panel in the right column */
}

/* Nudge second Experience textarea box position */
#organizedQuestionContainer #signupOrganizedExperiencePanel {
	margin-top: -70px; /* move up by additional 20px */
	margin-left: 30px; /* move right by 10px from previous -10px */
}

/* Desktop-only Experience textarea widths (screens larger than phones) */
@media screen and (min-width: 769px) {
    /* Reduce width of lower Experience textarea by 10px from the right */
    #signupOrganizedExperiencePanel .signup-textarea-container textarea {
        width: calc(100% + 240px) !important; /* Extend box 110px further to the right (increased by 100px for desktop) */
    }

    /* Reduce width of the first (attendance) Experience textarea by 30px from the right */
    #signupAttendanceExperiencePanel .signup-textarea-container textarea {
        width: calc(100% + 260px);
    }
}

/* Ensure identical font style/size for both Experience textareas */
.experience-right-panel .signup-textarea-container textarea {
	font-size: 0.9rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.4;
}

/* Match edge style (border and radius) for both Experience textareas */
.experience-right-panel .signup-textarea-container textarea {
	border: 2px solid #e5e5e5;
	border-radius: 8px;
}

/* Match active/focus edge style for both Experience textareas */
.experience-right-panel .signup-textarea-container textarea:focus {
	outline: none;
	border-color: #11A191;
	box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.12);
}

/* Shift second Experience box character counter 100px to the right */
#signupOrganizedExperiencePanel .signup-character-count {
    left: 710px;
}

/* Locked/unlocked styles for Experience textareas */
.experience-right-panel.locked .signup-textarea-container textarea {
	background-color: #f9f9f9;
	color: #bbb;
	pointer-events: none;
	border-color: #e5e5e5;
	opacity: 0.6;
}

.experience-right-panel.active .signup-textarea-container textarea {
	background-color: #fff;
	color: #333;
	pointer-events: auto;
}

/* Increase height of Experience textareas by 20px */
.experience-right-panel .signup-textarea-container textarea {
	min-height: 170px;
	height: 170px;
}

/* Ensure Experience counters stay fixed and don't jitter while typing */
#signupAttendanceExperiencePanel .signup-character-count,
#signupOrganizedExperiencePanel .signup-character-count {
    left: auto !important;
    right: 12px !important;
    bottom: 10px !important;
    width: 68px; /* fixed width for stable layout (e.g., 300/300) */
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Independent positioning for each Experience counter */
#signupAttendanceExperiencePanel .signup-character-count {
    transform: translateX(265px);
}

#signupOrganizedExperiencePanel .signup-character-count {
    transform: translateX(245px);
}

/* Additional 10 fields styling for About You tab */
.signup-additional-fields {
    margin-top: 0px; /* moved 10px further down */
    margin-left: 0px; /* shift 200px to the left */
    width: 780px; /* Match Bio box width */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Gap between rows */
    visibility: hidden; /* reserve space so layout doesn't move */
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 1000ms ease, transform 1000ms ease;
    pointer-events: none;
}

/* Animated visible state */
#signupTopicsLabelContainer.visible,
#signupAdditionalFields.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* JS toggles .visible class; no CSS sibling reveal to avoid flicker */

.signup-additional-row {
    display: flex;
    gap: 12px; /* Gap between columns */
    width: 100%;
}

.signup-additional-field {
    flex: 1; /* Equal width for all 5 fields in each row */
    display: flex;
    flex-direction: column;
}

.signup-additional-field input {
    width: 100%;
    padding: 12px 16px; /* Match dropdown height and padding */
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9rem; /* slightly smaller for better fit */
    font-family: inherit;
    box-sizing: border-box;
    height: 48px; /* Match dropdown height */
    background-color: #ffffff; /* unlocked appearance */
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 120ms ease;
    white-space: nowrap;
    overflow: hidden;
}

.signup-additional-field input:disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

.signup-additional-field input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Hover/active animations using brand color #11A191 - higher specificity */
.signup-additional-field input.interest-choice:hover {
    border-color: #11A191 !important;
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.12) !important;
}

.signup-additional-field input.interest-choice:active {
    transform: translateY(1px) !important;
}

/* Selected state styling for interest choices - higher specificity */
.signup-additional-field input.interest-choice.interest-selected {
    border-color: #11A191 !important;
    background-color: rgba(17, 161, 145, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(17, 161, 145, 0.16) !important;
}

/* Remove default focus outline (black border) after click */
.signup-additional-field input.interest-choice:focus,
.signup-additional-field input.interest-choice.interest-selected:focus,
.signup-additional-field input.interest-choice.interest-locked:focus {
    outline: none !important;
    box-shadow: none;
}

/* Apply ellipsis only to boxes with overflowing text */
.signup-additional-field input.interest-choice.text-overflow {
    text-overflow: ellipsis;
}

/* Text scrolling animation for overflowing content */
@keyframes scrollText {
    0% { text-indent: 0; }
    50% { text-indent: var(--scroll-distance); }
    100% { text-indent: 0; }
}

.signup-additional-field input.interest-choice.text-overflow:hover {
    animation: scrollText 2.5s ease-in-out infinite;
}

/* Denied wiggle when exceeding 3 selections */
@keyframes interestDeniedWiggle {
    0% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.signup-additional-field input.interest-choice.interest-denied {
    animation: interestDeniedWiggle 180ms ease !important;
}

/* Locked state when 3 selections reached */
.signup-additional-field input.interest-choice.interest-locked {
    background-color: #f5f5f5 !important;
    color: #ccc !important;
    border-color: #e5e5e5 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.signup-additional-field input.interest-choice.interest-locked:hover {
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
}

/* Responsive adjustments for additional fields */
@media screen and (max-width: 768px) {
    .signup-additional-fields {
        width: 100%; /* Full width on mobile */
        margin-top: 8px; /* Slightly reduced spacing on mobile */
    }
    
    .signup-additional-row {
        flex-direction: column; /* Stack fields vertically on mobile */
        gap: 8px;
    }
    
    .signup-additional-field input {
        height: 44px; /* Slightly shorter on mobile */
        padding: 10px 14px;
    }
}

@media screen and (max-width: 480px) {
    .signup-additional-field input {
        height: 42px; /* Even shorter on very small screens */
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}

/* Autofill color override - brand teal */
.signup-modal input:-webkit-autofill,
.signup-modal textarea:-webkit-autofill,
.signup-modal select:-webkit-autofill {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 161, 145, 0.03) inset !important;
    box-shadow: 0 0 0 1000px rgba(17, 161, 145, 0.03) inset !important;
    border-color: #11A191 !important;
}

.signup-modal input:-webkit-autofill:focus,
.signup-modal textarea:-webkit-autofill:focus,
.signup-modal select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 161, 145, 0.05) inset !important;
    box-shadow: 0 0 0 1000px rgba(17, 161, 145, 0.05) inset !important;
}