@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #6E3CEE;
    --primary-dark: #29145D;
    --background-light: #F5F5FF;
    --text-dark: #1D1E20;
    --text-light: #FFFFFF;
    --border-color: #e0e0e0;
}

#ru-container {
    font-family: 'Inter', sans-serif;
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.ru-header {
    text-align: center;
    margin-bottom: 30px;
}
.ru-header h1 {
    color: var(--primary-dark);
    font-size: 28px;
    margin: 0;
}
.ru-header p {
    color: #666;
    font-size: 16px;
}

.ru-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.ru-card h2 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.ru-step {
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-right: 15px;
}

.ru-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ru-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.ru-instructions {
    font-size: 13px;
    color: #777;
    margin-top: -10px;
    margin-bottom: 15px;
}

.pdf-note {
    margin-top: 10px !important; /* CSS FIX: Added space for the PDF note */
    color: #d9534f;
}

.ru-file-input, .ru-text-input, .ru-select-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--text-light);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.ru-file-input:hover, .ru-text-input:focus, .ru-select-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(110, 60, 238, 0.1);
    outline: none;
}
.ru-file-input::file-selector-button {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

.ru-select-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236E3CEE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}


.ru-button {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}
.ru-button:hover {
    background-color: #5a28d1;
    transform: translateY(-2px);
}
.ru-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#ru-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}
#ru-status.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
#ru-status.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* NEW LOADER STYLES */
#ru-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ru-loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--background-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ru-spin 1s linear infinite;
}
@keyframes ru-spin {
    to {
        transform: rotate(360deg);
    }
}