/* Matchmaking profile form (public/matchmaking/index) */

:root {
    --primary: #006943;
    --primary-dark: #004f32;
    --primary-light: #e6f4ef;
    --accent: #008a57;
    --accent2: #00b871;
    --bg: #f0f7f4;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --red: #ef4444;
    --gold: #f59e0b;
}

.mm-index-page * {
    box-sizing: border-box;
}

.mm-index-page {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

.mm-hero {
    background: linear-gradient(140deg, #004f32 0%, #006943 45%, #008a57 100%);
    padding: 5rem 0 9rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mm-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg);
    clip-path: ellipse(70% 100% at 50% 100%);
}

.mm-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.mm-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.back-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

.stats-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-item .lbl {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mm-wrap {
    margin-top: -5rem;
    padding-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.mm-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.role-selector {
    padding: 2.5rem 2.5rem 0;
}

.role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 1.25rem;
}

.role-tab {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 9.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: 0.875rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
}

@media (min-width: 1200px) {
    .role-tab {
        flex: 1 1 0;
        min-width: 0;
    }
}

.role-tab:hover {
    background: white;
    color: var(--primary);
}

.role-tab.active {
    background: white;
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 105, 67, 0.12);
}

.role-tab .role-icon {
    font-size: 2rem;
}

.role-tab .role-name {
    font-size: 1rem;
    font-weight: 700;
}

.role-tab .role-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

.role-tab.active .role-desc {
    opacity: 0.9;
}

/* Only the active role’s fieldset is shown; disabled duplicates stay out of layout */
.mm-role-fieldset[disabled] {
    display: none;
}

.form-body {
    padding: 2.5rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--primary-light);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label .req {
    color: var(--red);
    margin-left: 2px;
}

.fc {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 0.875rem;
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    width: 100%;
}

.fc:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 105, 67, 0.08);
    outline: none;
}

.fc::placeholder {
    color: #94a3b8;
}

textarea.fc {
    resize: vertical;
    min-height: 110px;
}

select.fc {
    cursor: pointer;
}

.mm-index-page .iti {
    width: 100%;
    display: block;
}

.mm-index-page .iti__flag-container {
    z-index: 10;
}

.mm-index-page .iti--separate-dial-code input[type="tel"] {
    padding-left: 95px !important;
}

.mm-index-page .iti--separate-dial-code .iti__selected-dial-code {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.mm-index-page .iti__country-list {
    z-index: 100 !important;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pic-upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.875rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: #f8fafc;
}

.pic-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pic-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.pic-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    display: none;
    margin: 0 auto 0.75rem;
}

.pic-placeholder i {
    font-size: 2.5rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.pic-placeholder p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tag-input-wrap {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 0.875rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 52px;
    transition: all 0.25s;
    cursor: text;
}

.tag-input-wrap:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 105, 67, 0.08);
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.skill-tag button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--primary);
    line-height: 1;
    font-size: 0.9rem;
    opacity: 0.7;
}

.skill-tag button:hover {
    opacity: 1;
}

.tag-text-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
    padding: 0.25rem;
    color: var(--text-main);
}

.tag-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.btn-launch {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 105, 67, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 105, 67, 0.3);
}

.btn-launch:active {
    transform: translateY(0);
}

.mm-alert {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: none;
    font-weight: 500;
}

.mm-alert.success {
    background: #ecfdf5;
    color: #065f46;
}

.mm-alert.info {
    background: #eff6ff;
    color: #1e40af;
}

.how-section {
    padding: 5rem 0;
}

.step-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 105, 67, 0.08);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.step-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.step-card h5 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.resume-banner {
    background: var(--primary);
    color: white;
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.resume-banner a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: background 0.2s;
    white-space: nowrap;
}

.resume-banner a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mm-dept-form-error {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .form-body {
        padding: 1.5rem;
    }

    .role-selector {
        padding: 1.5rem 1.5rem 0;
    }

    .role-tabs {
        flex-direction: column;
    }

    .stats-strip {
        gap: 1.5rem;
    }
}
