/* =============================================
   SL MATRIMONY — STYLESHEET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.slm-wrap {
    max-width: 860px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2c3e50;
}

/* Header */
.slm-register-header { text-align: center; margin-bottom: 30px; }
.slm-register-header h2 { font-size: 28px; color: #c0392b; margin-bottom: 8px; }
.slm-register-header p { color: #666; font-size: 15px; }

/* Sections */
.slm-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.slm-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #c0392b;
    border-bottom: 2px solid #f5e6e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid rows */
.slm-row { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.slm-col { flex: 1; min-width: 220px; }
.slm-col.slm-full { flex: 0 0 100%; }

/* Labels */
.slm-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.slm-form label .req { color: #c0392b; }
.slm-form label small { font-weight: 400; color: #999; }

/* Inputs */
.slm-form input[type="text"],
.slm-form input[type="email"],
.slm-form input[type="password"],
.slm-form input[type="date"],
.slm-form select,
.slm-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.slm-form input:focus,
.slm-form select:focus,
.slm-form textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
    background: #fff;
}
.slm-form textarea { resize: vertical; min-height: 90px; }
.slm-form select { cursor: pointer; }

/* Photo upload */
.slm-photo-upload-area {
    border: 2px dashed #c0392b;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fff8f8;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    margin-bottom: 20px;
}
.slm-photo-upload-area:hover { background: #fef0f0; }
.slm-photo-icon { font-size: 36px; margin-bottom: 10px; }
.slm-photo-upload-area p { color: #666; font-size: 14px; margin-bottom: 5px; }
.slm-photo-hint { font-size: 12px !important; color: #aaa !important; }
.slm-photo-upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
#slm-photo-preview {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; margin: 15px auto 0; display: block;
    border: 3px solid #c0392b;
}

/* Radio buttons */
.slm-photo-privacy { margin-top: 5px; }
.slm-photo-privacy > p { font-size: 14px; margin-bottom: 12px; color: #555; }
.slm-radio-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: #444; cursor: pointer;
    padding: 10px 14px; border-radius: 7px;
    border: 1.5px solid #eee; margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.slm-radio-label:hover { border-color: #c0392b; background: #fff8f8; }
.slm-radio-label input[type="radio"] { display: none; }
.slm-radio-custom {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #ccc; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
}
.slm-radio-label input[type="radio"]:checked ~ .slm-radio-custom {
    border-color: #c0392b;
    background: #c0392b;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Submit area */
.slm-submit-area { text-align: center; margin-top: 10px; }
.slm-btn {
    display: inline-block; padding: 10px 22px;
    border-radius: 7px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.slm-btn:active { transform: scale(0.98); }
.slm-btn-primary { background: #c0392b; color: #fff; }
.slm-btn-primary:hover { background: #a93226; }
.slm-btn-success { background: #27ae60; color: #fff; }
.slm-btn-success:hover { background: #229954; }
.slm-btn-gray { background: #95a5a6; color: #fff; }
.slm-btn-gray:hover { background: #7f8c8d; }
.slm-btn-lg { padding: 14px 40px; font-size: 16px; border-radius: 9px; }

.slm-terms { font-size: 12px; color: #999; margin-top: 12px; }

/* Messages */
.slm-notice  { padding: 14px 18px; background: #fef9e7; border-left: 4px solid #f39c12; border-radius: 5px; margin-bottom: 20px; font-size: 14px; }
.slm-error   { padding: 14px 18px; background: #fdecea; border-left: 4px solid #e74c3c; border-radius: 5px; margin-bottom: 20px; font-size: 14px; }
.slm-success { padding: 14px 18px; background: #eafaf1; border-left: 4px solid #27ae60; border-radius: 5px; margin-bottom: 20px; font-size: 14px; }

/* Profile cards */
.slm-card {
    border: 1px solid #eee; border-radius: 10px;
    padding: 18px; margin-bottom: 18px;
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.slm-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.slm-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; flex-shrink: 0; }
.slm-card-body { flex: 1; }
.slm-card-body h3 { font-size: 17px; margin-bottom: 5px; color: #2c3e50; }
.slm-card-body p { font-size: 13px; color: #777; margin-bottom: 3px; }
.slm-card-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Spinner */
.slm-spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid #fff; border-top-color: transparent; border-radius: 50%; animation: slm-spin 0.7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes slm-spin { to { transform: rotate(360deg); } }

/* Chat */
.slm-chat-box { border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; max-width: 700px; margin: 0 auto; }
.slm-chat-header { background: #c0392b; color: #fff; padding: 14px 18px; font-weight: 700; }
.slm-chat-messages { height: 380px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.slm-msg { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.slm-msg-out { align-self: flex-end; background: #c0392b; color: #fff; border-bottom-right-radius: 3px; }
.slm-msg-in  { align-self: flex-start; background: #ecf0f1; color: #333; border-bottom-left-radius: 3px; }
.slm-msg-time { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.slm-chat-input { display: flex; border-top: 1px solid #eee; }
.slm-chat-input textarea { flex: 1; border: none; padding: 14px; resize: none; font-size: 14px; outline: none; height: 54px; }
.slm-chat-input button { background: #c0392b; color: #fff; border: none; padding: 0 22px; cursor: pointer; font-size: 20px; }
.slm-chat-input button:hover { background: #a93226; }

@media (max-width: 600px) {
    .slm-row { flex-direction: column; gap: 0; }
    .slm-col { min-width: 100%; }
    .slm-card { flex-direction: column; }
    .slm-card img { width: 70px; height: 70px; }
}

/* ---- DASHBOARD ---- */
.slm-dashboard-header {
    display: flex; gap: 20px; align-items: center;
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.slm-dash-photo img {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 3px solid #c0392b;
}
.slm-dash-info h2 { font-size: 22px; margin-bottom: 8px; color: #2c3e50; }

.slm-badge {
    display: inline-block; padding: 4px 14px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.slm-badge-pending  { background: #fef9e7; color: #d68910; border: 1px solid #f39c12; }
.slm-badge-approved { background: #eafaf1; color: #1e8449; border: 1px solid #27ae60; }

/* Payment box */
.slm-payment-box {
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.slm-payment-icon { font-size: 48px; margin-bottom: 12px; }
.slm-payment-box h3 { font-size: 20px; color: #2c3e50; margin-bottom: 10px; }
.slm-payment-box p  { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.6; }
.slm-payment-note   { font-size: 13px; color: #999; margin-top: 16px; }

/* Bank details */
.slm-bank-details {
    background: #fafafa; border: 1px solid #eee;
    border-radius: 10px; padding: 20px;
    text-align: left; margin-bottom: 24px;
}
.slm-bank-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.slm-bank-row:last-child { border-bottom: none; }
.slm-bank-label { color: #888; font-weight: 600; }
.slm-bank-value { color: #2c3e50; }

/* WhatsApp button */
.slm-btn-whatsapp {
    display: inline-flex; align-items: center;
    background: #25d366; color: #fff;
    padding: 13px 28px; border-radius: 8px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.2s;
}
.slm-btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

/* Approved action cards */
.slm-approved-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.slm-action-card {
    flex: 1; min-width: 140px;
    background: #fff; border: 1px solid #eee;
    border-radius: 12px; padding: 24px 16px;
    text-align: center; text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}
.slm-action-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); border-color: #c0392b; }
.slm-action-icon  { font-size: 32px; margin-bottom: 10px; }
.slm-action-label { font-size: 14px; font-weight: 700; color: #2c3e50; }

/* Profile summary grid */
.slm-profile-grid { display: flex; flex-direction: column; gap: 0; }
.slm-profile-row {
    display: flex; justify-content: space-between;
    padding: 11px 0; border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.slm-profile-row:last-child { border-bottom: none; }
.slm-profile-label { color: #888; font-weight: 600; min-width: 160px; }

/* ---- LOGIN ---- */
.slm-login-box {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.slm-login-header { text-align: center; margin-bottom: 28px; }
.slm-login-header h2 { font-size: 24px; color: #c0392b; margin-bottom: 6px; }
.slm-login-header p  { font-size: 14px; color: #888; }

/* ---- BROWSE ---- */
.slm-browse-header { text-align:center; margin-bottom:24px; }
.slm-browse-header h2 { font-size:26px; color:#c0392b; margin-bottom:6px; }
.slm-browse-header p  { color:#888; font-size:15px; }

.slm-filter-bar { background:#fff; border:1px solid #eee; border-radius:10px; padding:20px; margin-bottom:24px; box-shadow:0 2px 6px rgba(0,0,0,0.04); }
.slm-filter-row { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.slm-filter-item { display:flex; flex-direction:column; gap:6px; flex:1; min-width:150px; }
.slm-filter-item label { font-size:12px; font-weight:600; color:#888; text-transform:uppercase; letter-spacing:0.5px; }
.slm-filter-item select,
.slm-filter-item input[type="text"],
.slm-filter-item input[type="number"] { padding:9px 12px; border:1.5px solid #ddd; border-radius:7px; font-size:14px; background:#fafafa; outline:none; }
.slm-filter-item select:focus,
.slm-filter-item input:focus { border-color:#c0392b; background:#fff; }
.slm-filter-age .slm-age-inputs { display:flex; align-items:center; gap:8px; }
.slm-filter-age .slm-age-inputs input { width:80px; }
.slm-filter-btns { flex-direction:row !important; gap:8px; align-items:flex-end; min-width:auto !important; }

.slm-results-count { font-size:13px; color:#999; margin-bottom:16px; }

.slm-empty-state { text-align:center; padding:60px 20px; }
.slm-empty-icon { font-size:48px; margin-bottom:12px; }
.slm-empty-state h3 { font-size:18px; color:#555; margin-bottom:8px; }
.slm-empty-state p  { font-size:14px; color:#aaa; }

/* ---- PROFILE VIEW ---- */
.slm-back-link { display:inline-block; margin-bottom:20px; color:#c0392b; text-decoration:none; font-size:14px; font-weight:600; }
.slm-back-link:hover { text-decoration:underline; }

.slm-profile-view { display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap; }
.slm-profile-view-left { width:220px; flex-shrink:0; background:#fff; border:1px solid #eee; border-radius:12px; padding:24px; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.05); position:sticky; top:20px; }
.slm-profile-view-left img { width:150px; height:150px; border-radius:50%; object-fit:cover; border:3px solid #c0392b; margin-bottom:14px; }
.slm-profile-view-left h2 { font-size:18px; color:#2c3e50; margin-bottom:6px; }
.slm-profile-view-right { flex:1; min-width:280px; }

.slm-match-badge { background:#eafaf1; color:#1e8449; border:1px solid #27ae60; border-radius:20px; padding:5px 14px; font-size:13px; font-weight:700; display:inline-block; margin-top:10px; }
.slm-unlocked-contact { margin-top:16px; background:#eafaf1; border:1px solid #27ae60; border-radius:10px; padding:14px; }
.slm-unlocked-contact p { font-size:13px; color:#1e8449; margin-bottom:4px; }

.slm-locked-section { background:#fafafa; }
.slm-locked-msg { font-size:14px; color:#999; padding:10px 0; text-align:center; }