/**
 * Registration Form Styles
 *
 * Frontend styles for the registration form.
 */

.registration-intercept-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.registration-intercept-heading {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #333;
}

.registration-intercept-welcome {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Error Summary */
.registration-intercept-errors {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.registration-intercept-errors h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.registration-intercept-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.registration-intercept-errors a {
    color: #721c24;
    text-decoration: underline;
}

.registration-intercept-errors a:hover {
    color: #491217;
}

/* Success Message */
.registration-intercept-success {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.registration-intercept-success h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #155724;
}

/* Disabled Message */
.registration-intercept-disabled {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

/* Form Fields */
.registration-intercept-form .form-field {
    margin-bottom: 1.5rem;
}

.registration-intercept-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.registration-intercept-form .required {
    color: #d63638;
}

.registration-intercept-form .field-description {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.registration-intercept-form input[type="text"],
.registration-intercept-form input[type="email"],
.registration-intercept-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.registration-intercept-form input[type="text"]:focus,
.registration-intercept-form input[type="email"]:focus,
.registration-intercept-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.registration-intercept-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Field Errors */
.registration-intercept-form .has-error input,
.registration-intercept-form .has-error textarea {
    border-color: #d63638;
}

.registration-intercept-form .has-error input:focus,
.registration-intercept-form .has-error textarea:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.registration-intercept-form .field-error {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    background: #f8d7da;
    border-left: 3px solid #d63638;
    color: #721c24;
    font-size: 0.9rem;
}

/* Submit Button */
.registration-intercept-submit {
    padding: 0.75rem 1.5rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.registration-intercept-submit:hover {
    background: #135e96;
}

.registration-intercept-submit:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.registration-intercept-submit:active {
    background: #0a4b78;
}

/* Notice */
.registration-intercept-notice {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

/* Responsive */
@media (max-width: 640px) {
    .registration-intercept-form-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .registration-intercept-heading {
        font-size: 1.5rem;
    }
}
