/* Project: Matrimonial Directory 
    Palette: Match.com Inspired (Indigo & Berry)
*/

:root {
    --match-indigo: #002244;
    --match-berry: #ff005d;
    --match-bg: #f8f9fb;
    --white: #ffffff;
    --text-gray: #666666;
    --border-light: rgba(0, 34, 68, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--match-bg);
    color: var(--match-indigo);
}

/* --- Navigation --- */
header {
    background: var(--white);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo {
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    color: var(--match-indigo);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--match-berry);
}

.nav-links a {
    text-decoration: none;
    color: var(--match-indigo);
    font-weight: 600;
    font-size: 14px;
    margin-left: 20px;
}

.nav-links .join-link {
    color: var(--match-berry);
}

/* --- Hero --- */
.hero {
    background: var(--white);
    padding: 100px 20px 110px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0;
}

/* --- Search Container --- */
.search-wrapper {
    width: 90%;
    max-width: 720px;
    margin: -50px auto 60px;
    position: relative;
    z-index: 10;
}

.curvy-search-bar {
    background: var(--white);
    padding: 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px var(--border-light);
    border: 1px solid rgba(0, 34, 68, 0.05);
}

.search-field {
    flex: 1;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 10px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.search-field select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--match-indigo);
    outline: none;
    cursor: pointer;
}

.divider {
    width: 1px;
    height: 35px;
    background: #eeeeee;
}

.btn-search {
    background: var(--match-berry);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-search:hover {
    background: #e60054;
    transform: scale(1.03);
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .curvy-search-bar {
        flex-direction: column;
        border-radius: 30px;
        padding: 25px;
        gap: 15px;
    }

    .search-wrapper {
        margin-top: -65px;
    }

    .search-field {
        width: 100%;
        padding: 12px;
        text-align: center;
        align-items: center;
        background: #fafafa;
        border-radius: 15px;
    }

    .search-field select {
        text-align: center;
        text-align-last: center;
        width: 100%;
    }

    .divider {
        display: none;
    }

    .btn-search {
        width: 100%;
        padding: 20px;
        font-size: 18px;
        margin-top: 10px;
    }

    .age-row {
        justify-content: center !important;
        width: 100%;
    }
}

/* Registration Quiz Specific Styles */
.quiz-container { 
    max-width: 850px; 
    margin: 40px auto; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 30px; 
    box-shadow: 0 15px 35px var(--border-light); 
}

.step-node { 
    width: 40px; height: 40px; 
    background: #eee; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 800; color: #999; 
    border: 4px solid var(--white);
    transition: 0.3s;
}

.step-node.active { 
    background: var(--match-berry); 
    color: var(--white); 
    box-shadow: 0 0 15px rgba(255, 0, 93, 0.3);
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-top: 30px;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
    display: block;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--match-indigo);
    outline: none;
    transition: 0.2s;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--match-berry);
    background: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .quiz-container { padding: 25px; width: 95%; border-radius: 20px; }
}


    .user-grid { 
        display: grid; 
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
        gap: 25px; 
        padding: 20px; 
        max-width: 1200px; 
        margin: 0 auto;
    }
    
    .profile-card { 
        background: #fffdf2; /* Matches the cream tint in your screenshot */
        border: 1px solid #e6dfc3; 
        border-radius: 10px; 
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }

    .card-image-wrapper { 
        padding: 20px;
        display: flex;
        justify-content: center;
        background: #fff;
        border-bottom: 1px dashed #e6dfc3;
        position: relative;
    }

    .gender-avatar { 
        width: 80px; 
        height: 80px; 
        border-radius: 50%;
        border: 2px solid #f0f0f0;
        object-fit: cover;
    }

    .badge-complexion {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: #6c757d;
        color: #fff;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: bold;
    }

    .card-flag {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 22px;
    }

    .card-content { padding: 20px; }
    
    .card-header-row h3 { margin: 0 0 15px 0; font-size: 22px; color: #333; }

    .details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    
    .detail-item { font-size: 14px; color: #555; display: flex; align-items: center; gap: 8px; }

    .card-footer { text-align: right; margin-top: 20px; border-top: 1px solid #f2edd5; padding-top: 10px; }
    
    .btn-more { text-decoration: none; color: #333; font-weight: bold; font-size: 14px; transition: 0.2s; }
    .btn-more:hover { color: #d63384; }
