.rurl-form input[type="text"],
.rurl-form input[type="password"],
.rurl-form input[type="number"],
.rurl-form input[type="email"],
.rurl-form input[type="tel"],
.rurl-form input[type="file"],
.rurl-form select,
.rurl-form input[type="hidden"],
.rurl-form textarea {
    width: 100%;
    padding: 16px !important;
    border: 1px solid #ffffff14;
    border-radius: 12px;
    font-size: 16px !important;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #ffffff14;
    color: #FFF;
}

/* File input button styling to match theme */
.rurl-form input[type="file"]::file-selector-button {
    background: #2068F5;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 10px 14px;
    margin-right: 12px;
    cursor: pointer;
    font: 500 14px Poppins, Arial, sans-serif;
}
/* Safari/WebKit fallback */
.rurl-form input[type="file"]::-webkit-file-upload-button {
    background: #2068F5;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 10px 14px;
    margin-right: 12px;
    cursor: pointer;
    font: 500 14px Poppins, Arial, sans-serif;
}

/* Full-width action buttons in auth forms */
.rurl-form button,
.rurl-form input[type="submit"],
.rurl-form input[type="button"],
.rurl-form input[type="reset"] {
    width: 100%;
    display: inline-block;
    padding: 14px 18px;
    box-sizing: border-box;
}

.rurl-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Match translucent input background and white text */
    background-color: #ffffff14; /* same as inputs above */
    color: #FFF;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23FFF" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px; /* Space for custom arrow */
    border-color: #ffffff14; /* match other inputs */
    border-radius: 28px;
    overflow: hidden; /* clip native arrow area on some browsers */
}

/* Ensure dropdown options remain legible */
.rurl-form select option {
    background-color: #FFFFFF;
    color: #111;
}

/* Hide legacy select arrow in old Edge/IE */
.rurl-form select::-ms-expand { display: none; }

.rurl-form input::placeholder,
.rurl-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.rurl-form input[type="text"]:focus,
.rurl-form input[type="password"]:focus,
.rurl-form input[type="number"]:focus,
.rurl-form input[type="email"]:focus,
.rurl-form input[type="tel"]:focus,
.rurl-form select:focus,
.rurl-form textarea:focus {
    outline: none;
    border-color: #2068F5;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Section title between stacked forms */
.rurl-section-title {
    color: #FFF;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 3rem 0 0.75rem 0;
}

/* Add spacing when forms are stacked one after another */
.rurl-form + .rurl-form {
    margin-top: 24px;
}

/* Auth helper links below forms */
.rurl-auth-link {
    color: #FFF !important;
    text-decoration: underline !important;
    display: inline-block;
    margin-top: 12px;
}

.rurl-form input[type="file"] {
    background-color: #ffffff14 !important;
    border: 1px solid #ffffff14 !important;
}

@media (max-width: 480px) {
    .rurl-form input[type="text"],
    .rurl-form input[type="password"],
    .rurl-form input[type="number"],
    .rurl-form input[type="email"],
    .rurl-form input[type="tel"],
    .rurl-form select,
    .rurl-form input[type="hidden"],
    .rurl-form textarea {
        font-size: 14px;
        padding: 10px;
    }

    .rurl-form select {
        padding-right: 30px;
        background-position: right 10px center;
    }
}
