* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 50px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    z-index: 1;
}

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

#back-btn {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

#back-btn:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#back-btn:active {
    transform: translateX(-6px) scale(0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 60px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tour-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
}

.tour-button:active {
    transform: translateY(-2px) scale(1.02);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.profile-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 25px;
    border: 3px dashed rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-photo:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.image-container {
    position: relative;
    cursor: pointer;
}

#profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(102, 126, 234, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.image-container:hover #profile-img {
    transform: scale(1.08);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(102, 126, 234, 0.4);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.image-overlay i {
    font-size: 40px;
    color: white;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.upload-label {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.upload-label:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
}

.upload-label:active {
    transform: translateY(-2px) scale(1.02);
}

#photo-upload {
    display: none;
}

.helper-text {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.6s ease-out backwards;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }
.form-group:nth-child(6) { animation-delay: 0.5s; }
.form-group:nth-child(7) { animation-delay: 0.6s; }

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

.form-group > label {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group > label i {
    color: #667eea;
    font-size: 20px;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    font-weight: 400;
}

.textarea-wrapper {
    position: relative;
}

#bio {
    width: 100%;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    min-height: 140px;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#bio:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.char-counter {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
}

.preferences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.preference-item:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.preference-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    transition: all 0.3s ease;
}

.preference-item input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.preference-item label {
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.preference-item label i {
    color: #667eea;
    font-size: 18px;
}

.preference-item input[type="checkbox"]:checked ~ label {
    color: #667eea;
    font-weight: 600;
}

.select-wrapper {
    position: relative;
}

#fitness-goal {
    width: 100%;
    padding: 16px 45px 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#fitness-goal:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
    font-size: 16px;
}

.experience-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.experience-item {
    position: relative;
}

.experience-item input[type="radio"] {
    display: none;
}

.experience-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.experience-item label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.experience-item label i {
    font-size: 35px;
    color: #667eea;
    transition: all 0.3s ease;
}

.exp-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.exp-desc {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.experience-item input[type="radio"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.experience-item input[type="radio"]:checked + label i {
    transform: scale(1.2);
    color: #764ba2;
}

.experience-item input[type="radio"]:checked + label .exp-title {
    color: #667eea;
}

/* ===== Availability Slider ===== */
.availability-slider {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, #667eea, #764ba2, #f093fb);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    cursor: pointer;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    border: 3px solid #667eea;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    border: 3px solid #667eea;
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.time-preference {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.time-item {
    position: relative;
}

.time-item input[type="radio"] {
    display: none;
}

.time-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.time-item label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.time-item label i {
    font-size: 32px;
    color: #667eea;
    transition: all 0.3s ease;
}

.time-item label span {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.time-item label small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.time-item input[type="radio"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.time-item input[type="radio"]:checked + label i {
    transform: scale(1.2);
    color: #764ba2;
}

.time-item input[type="radio"]:checked + label span {
    color: #667eea;
}

.profile-cta-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-button {
    flex: 1;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    min-width: 200px;
}

.primary-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.primary-cta:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
}

.primary-cta:active {
    transform: translateY(-3px) scale(1.01);
}

.secondary-cta {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.secondary-cta:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #764ba2;
    color: #764ba2;
}

.secondary-cta:active {
    transform: translateY(-3px) scale(1.01);
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 30px 25px;
        border-radius: 25px;
    }

    #back-btn {
        width: 45px;
        height: 45px;
        top: 25px;
        left: 25px;
        font-size: 20px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        margin-bottom: 35px;
    }

    h1 {
        font-size: 28px;
        margin-left: 0 !important;
    }

    .tour-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .preferences {
        grid-template-columns: 1fr;
    }

    .experience-levels {
        grid-template-columns: 1fr;
    }

    .time-preference {
        grid-template-columns: 1fr;
    }

    .profile-cta-container {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        min-width: unset;
    }

    .slider-labels {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
    }

    #profile-img {
        width: 120px;
        height: 120px;
    }

    .form-group > label {
        font-size: 16px;
    }

    .preference-item {
        padding: 15px 18px;
    }

    .experience-item label {
        padding: 20px 15px;
    }

    .time-item label {
        padding: 18px 15px;
    }
}

@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    #back-btn,
    .tour-button,
    .profile-cta-container {
        display: none;
    }
}
