/* Container for the form to give it that "Card" feel */
.form-registration {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Spacing between fields */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Styling the Labels */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Inputs and Selects */
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    outline: none;
}

/* Focus states - using your accent orange */
.form-input:focus, .form-select:focus {
    border-color: #ff8c00; 
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Button Styling */
.button-wrapper {
    margin-top: 2rem;
}

button.contrast {
    width: 100%;
    padding: 0.8rem 2rem;
    background-color: #6b46c1; /* Deep purple */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

button.contrast:hover {
    background-color: #553c9a;
    transform: translateY(-1px);
}

button.contrast:active {
    transform: translateY(0);
}

/* Form Messages (Success/Error) */
.form-errors {
    background: #fff5f5;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c53030;
}




/* 1. The Main Overlay */
#security-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Darken background */
    backdrop-filter: blur(5px); /* Modern blur effect */
    z-index: 99999; /* Ensure it is above everything else */
    
    /* Flexbox centering */
    justify-content: center;
    align-items: center;
}

/* 2. The Box Content */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #333;
    font-family: sans-serif;
}

.modal-content h3 {
    color: #d9534f; /* Alert Red */
    margin-top: 0;
}

#modal-url {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 15px 0;
    display: block;
    color: #555;
}

/* 3. Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-proceed {
    background: #d9534f;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}