/* UM Multi-Step Registration Styles */

#umms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Indicator */
.umms-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
    display:none;
}

.umms-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.umms-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #666;
    transition: all 0.3s;
}

.umms-progress-step.active .umms-progress-circle {
    background-color: #3498db;
    color: white;
}

.umms-progress-step.completed .umms-progress-circle {
    background-color: #27ae60;
    color: white;
}

.umms-progress-step.completed .umms-progress-circle::before {
    content: "✓";
}

.umms-progress-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.umms-progress-step.active .umms-progress-label {
    color: #3498db;
}

.umms-progress-line {
    width: 80px;
    height: 2px;
    background-color: #ddd;
    margin: 0 10px;
    margin-bottom: 20px;
}

/* Steps */
.umms-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.umms-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Headings */
#umms-container h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Username validation */
.username-with-spaces {
    border-color: #e74c3c !important;
}

#username-space-alert {
    font-weight: 700;
    color: #e74c3c;
    margin-top: 5px;
    font-size: 14px;
}

/* Buttons */
.umms-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.umms-btn-primary {
    background-color: #3498db;
    color: white;
}

.umms-btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.umms-btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.umms-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.umms-btn-secondary:hover {
    background-color: #7f8c8d;
}

.umms-btn-success {
    background-color: #27ae60;
    color: white;
}

.umms-btn-success:hover {
    background-color: #229954;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.arrow {
    font-weight: normal;
}

/* Acknowledgement Sections */
.ack-section {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.ack-section.optional {
    background-color: #e8f4f8;
    border-color: #bee5eb;
}

.checkbox-option {
    display: block;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.checkbox-option p {
    margin: 0;
    padding-left: 28px;
    color: #666;
    line-height: 1.6;
}

.checkbox-option a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-option a:hover {
    text-decoration: underline;
}

/* Messages */
.umms-error {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.umms-success {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Success Page */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message h2 {
    color: #27ae60;
    font-size: 2.5em;
    margin-bottom: 20px;
    border: none;
}

.success-message p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #666;
}

.success-icon {
    font-size: 80px;
    margin-top: 30px;
}

/* Loading Spinner */
#umms-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#umms-loading p {
    color: white;
    font-size: 18px;
    margin-top: 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #umms-container {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .umms-btn {
        width: 100%;
    }
    
    .umms-progress {
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .umms-progress-line {
        width: 40px;
    }
    
    .umms-progress-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .umms-progress-label {
        font-size: 10px;
    }
}





/* Radio Button Groups */
.radio-group {
    margin-top: 10px;
}

.radio-option {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + label,
.radio-option:has(input:checked) {
    background: #e8f4f8;
    border-color: #3498db;
    font-weight: 600;
}

.other-text-input {
    width: calc(100% - 30px);
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

