/* Main Form Container */
.msr-form {
    max-width: 520px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    font-family: "Segoe UI", system-ui, sans-serif;
}

/* Headings */
.msr-form h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
}

.msr-form h3:not(:first-child) {
    margin-top: 35px;
}

/* Inputs & Select */
.msr-form input:not([type="radio"]),
.msr-form select {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    box-sizing: border-box;
}

.msr-form input:focus,
.msr-form select:focus {
    outline: none;
    border-color: #0090CD;
}

/* Labels */
.msr-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Form Row Layout */
.msr-form .form-row {
    margin-bottom: 20px;
}

/* Align label and radio group vertically */
.msr-form .field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Radio container */
.msr-form .radio-options {
    display: flex;
    align-items: center;
    gap: 25px; /* space between options */
}

/* Each radio label */
.msr-form .radio-options label {
    display: flex;
    align-items: center;
    gap: 6px; /* space between circle and text */
    cursor: pointer;
}

/* Optional: fix radio vertical alignment */
.msr-form input[type="radio"] {
    margin: 0;
}


/* Submit Button */
.msr-form input[type="submit"] {
    width: 100% !important;
    max-width: 100%;
    background: linear-gradient(135deg, #0090CD, #6C72E2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    text-align:center; 
}

.msr-form input[type="submit"]:hover {
    opacity: 0.9;
}

/* Success & Error Messages */
.msr-success {
    max-width: 520px;
    margin: 20px auto;
    padding: 14px;
    background: #e6fffa;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #065f46;
}

.msr-error {
    max-width: 520px;
    margin: 20px auto;
    padding: 14px;
    background: #fee2e2;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #991b1b;
}

/* Mobile */
@media (max-width: 650px) {

    .radio-options {
        flex-direction: column;
        gap: 12px;
    }
}
.msr-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.msr-form input,
.msr-form select {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
}

.msr-success {
    text-align: center;
    color: green;
    margin-bottom: 15px;
}

.msr-error {
    text-align: center;
    color: red;
    margin-bottom: 15px;
}
.msr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Overlay */
.msr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Content */
.msr-modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

/* Icon Circle */
.msr-icon-circle {
    font-size: 50px;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    line-height: 80px;
    border-radius: 50%;
    color: #fff;
    background-color: #28a745; /* Green for success */
}

.msr-icon-circle.error {
    background-color: #dc3545; /* Red for error */
}

/* Modal Title */
.msr-modal-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

/* Modal Message */
.msr-modal-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

/* Buttons */
.msr-modal-btn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
}

.msr-success-btn {
    background: #007bff; /* Bright blue */
}

.msr-success-btn:hover {
    background: #0056b3;
}

.msr-error-btn {
    background: #dc3545; /* Red */
}

.msr-error-btn:hover {
    background: #a71d2a;
}
/* Modal Close Button */
.msr-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.msr-modal-close:hover {
    color: #e74c3c; /* Red on hover */
}


@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}
