.matrimony-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.matrimony-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.3s;
}

.matrimony-close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.matrimony-close:hover,
.matrimony-close:focus {
    color: black;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.view-profile-button:hover {
    background: #005c99;
}

.matrimony-form-box {
    max-width: 360px; /* Reduced from 500px */
    margin: 40px auto;
    padding: 30px 35px;
    background: #fff;
    border: 2px solid #0073aa;
    outline: 4px solid #e6f4fb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease-in-out;
}


.matrimony-form-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    outline-color: #d0ecfa;
    border-color: #005c99;
}


.matrimony-form-box h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #333;
}

.matrimony-form-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.matrimony-form-box input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.matrimony-form-box input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
}

.matrimony-form-box button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.matrimony-form-box button:hover {
    background-color: #005c99;
}

#matrimony-error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

