/* .join-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
} */

/* .join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
} */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.mymodal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .mymodal {
    transform: scale(1);
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    /* margin-bottom: 30px; */
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.question-description {
    color: #718096;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option.selected {
    border-color: #667eea;
    background: #eef2ff;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

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

.success-message {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar styling */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.weight-input-container {
    max-width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    /* Rounded corners like image */
    padding: 4px 8px;
    background-color: #fff;
}

/* .weight-input-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  } */

.weight-input-container input {
    max-width: 250px;
    border: none;
    box-shadow: none !important;
    outline: none;
}

.unit-toggle {
    /* background-color: #e9ecef; Light gray background */
    border-radius: 8px;
    padding: 2px;
    display: flex;
}

.unit-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 6px;
    color: #495057;
    transition: all 0.2s;
    margin: 0 10px 0 10px;
    min-width: 50px;
}

/* The active white button look */
.unit-btn.active {
    border: solid black 2px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000;
}

.faded {
    opacity: 0.4;
    /* Makes it look light/transparent */
    filter: grayscale(50%);
    /* Optional: removes some color */
    cursor: not-allowed;
}

/* Optional: Smooth the transition */
.btn {
    transition: opacity 0.3s ease;
}

.gender-button {
    width: 180px;
    height: 180px;
    background-color: #667eea;
    border-radius: 25%;
    transition: background-color 0.3s ease;
    /* Makes the change smooth */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    border: 1px solid #ccc;
}

.gender-button i {
    font-size: 100px;
    width: 80px;
    height: 80px"

}

.gender-button.selected {
    background: #667eea !important;
    color: white !important;
    /* transform: scale(1.05); */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.gender-button.unselected {
    background: grey !important;
    /* color: white !important; */
    /* transform: scale(1.05); */
    /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); */
}

.gender-content {
    display: flex;
    flex-direction: row;
}

.gender-content p {
    flex: 1 100px;
    text-align: center;
    font-size: 20px;
    margin: 0;
}

/* Grid Layout */
.goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 12px;
}

/* Hide the actual radio circles */
.goal-input {
    display: none;
}

/* Style the Labels as Cards */
.goal-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.emoji {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Hover State */
.goal-card:hover {
    background-color: #fafafa;
}

/* Selected State - THIS IS THE MAGIC PART */
.goal-input:checked+.goal-card {
    background-color: #e6f7ff;
    border: 2px solid #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Activity Level Styles */
#modal-5 .mymodal {
    max-width: 800px;  /* +200px wider */
    height: auto;
    padding: 50px;     /* More breathing room */
}

.activity-level-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.activity-option {
    display: flex;
    align-items: flex-start;
    /* padding: 16px; */
    padding: 5px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.activity-option:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateX(4px);
}

.activity-option input[type="radio"] {
    margin-top: 4px;
    margin-right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.activity-option.selected {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.activity-content {
    flex: 1;
    width: auto;
}

.activity-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    /* margin-bottom: 6px; */
}

.activity-description {
    font-size: 14px;
    color: #718096;
    /* line-height: 1.6; */
}


/* Number selector styling for Step 6 */
.number-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.number-option {
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.number-option:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: scale(1.1);
}

.number-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* ============================================ */
/* LOADING MODAL STYLES */
/* ============================================ */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-modal.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.loading-modal.active .loading-content {
    transform: scale(1);
}

/* Spinner Animation */
.spinner-container {
    margin-bottom: 30px;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulsing dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #718096;
}

/* Alternative spinner styles - you can choose */

/* Style 2: Double Ring Spinner */
.spinner-double {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.spinner-double::before,
.spinner-double::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
}

.spinner-double::before {
    width: 80px;
    height: 80px;
    border-top-color: #667eea;
    border-right-color: #667eea;
    animation: spin 1s linear infinite;
}

.spinner-double::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-bottom-color: #764ba2;
    border-left-color: #764ba2;
    animation: spin 0.7s linear infinite reverse;
}

/* Style 3: Gradient Spinner */
.spinner-gradient {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            #667eea 90deg,
            #764ba2 180deg,
            transparent 270deg);
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner-gradient::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    top: 8px;
    left: 8px;
}

/* Progress bar style loader */
.progress-loader {
    width: 250px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-loader-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}