/* Matrimony Form Styling */
#matrimony-form-section {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.matrimony-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.otp-btn, 
.verify-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s;
    font-size: 14px;
}

.otp-btn:hover,
.verify-btn:hover {
    background: #1976d2;
}

#submit-profile {
    background: #e91e63;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
    margin-top: 20px;
}

#submit-profile:hover:not(:disabled) {
    background: #c2185b;
}

#submit-profile:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.otp-section {
    display: none;
}

#otp-message,
#form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.success-message {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Profiles Grid Styling */
#matrimony-profiles-section {
    max-width: 1200px;
    margin: 20px auto;
}

.matrimony-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #e91e63;
}

.profile-card.groom {
    border-left-color: #2196f3;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
}

.profile-card.groom .profile-avatar {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.profile-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.profile-meta {
    color: #666;
    font-size: 14px;
}

.profile-details {
    margin: 15px 0;
}

.detail-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
}

.profile-bio {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #e91e63;
}

.profile-bio p {
    margin: 0;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.profile-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.no-profiles {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-profiles h3 {
    color: #666;
    margin-bottom: 10px;
}

.profiles-stats {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #matrimony-form-section {
        margin: 10px;
        padding: 15px;
    }
    
    .matrimony-header {
        padding: 15px;
    }
    
    .matrimony-header h2 {
        font-size: 20px;
    }
    
    .matrimony-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}