/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;700;800&family=Nunito+Sans:wght@400;600&display=swap');

/* Modal Overlay (Background) */
.rd-overlay {
    display: none; /* Initially Hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    animation: rdFadeIn 0.3s ease-out forwards;
    padding: 15px;
    box-sizing: border-box;
}

/* Modal Content Box */
.rd-popup-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Mulish', sans-serif;
    animation: rdSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.rd-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: bold;
    line-height: 1;
}

.rd-close-btn:hover {
    color: #ff7d29;
}

/* Header Section */
.rd-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.rd-logo {
    width: 60px;
    height: auto;
    margin-top: 5px;
}

.rd-title-group h2 {
    font-size: 1.4rem;
    color: #222;
    line-height: 1.3;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.rd-title-group p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.4;
}

/* Form Styles */
.rd-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rd-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    box-sizing: border-box;
}

.rd-input:focus {
    border-color: #ff7d29;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 125, 41, 0.1);
}

.rd-submit-btn {
    background: linear-gradient(to right, #ff7d29, #ff5e14);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-family: 'Mulish', sans-serif;
}

.rd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.3);
}

/* Animations */
@keyframes rdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rdSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .rd-popup-box {
        padding: 25px;
        width: 90%;
    }
    .rd-header {
        flex-direction: column;
        gap: 10px;
    }
    .rd-logo {
        width: 50px;
    }
}
.rd-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.rd-overlay.active {
    opacity: 1;
}

/* SweetAlert2 ke fonts fix karne ke liye */
.swal2-popup {
    font-family: 'Mulish', sans-serif !important;
}