/* Global Brand Styling */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.brand-header img {
    max-width: 100%;
    height: auto;
}

h1.light-text {
    font-family: 'Andale Mono', AndaleMono, monospace;
    font-weight: 200; 
    color: #5a5a5a;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-top: 15px; 
}

/* Form Container */
.a-body {
    margin: 0 auto;
    font-family: 'Andale Mono', AndaleMono, monospace; /* Updated to Andale Mono for the whole form */
    font-size: 1.05rem; /* Slightly increased for better legibility */
    color: #333;
    background-color: #f8f9fa;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

#a-form {
    display: block;
    background-color: #fff;
    padding: 40px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 750px; 
}

.a-h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Inputs & Structure */
.a-form-group {
    margin-bottom: 1.25rem;
}

.a-label {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #495057;
}

.a-input-group {
    width: 100%;
}

.a-form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    font-family: inherit;
}

.a-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.a-form-control {
    resize: vertical;
}

/* File Upload Input Styling */
input[type="file"].a-form-control {
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    background-color: #f8f9fa;
}

input[type="file"]::file-selector-button {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #23272b;
}

/* Terms & Conditions Section */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.terms-group input[type="checkbox"] {
    margin-top: 4px;
}

.terms-label a {
    color: #0056b3;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

.terms-iframe {
    width: 100%;
    height: 150px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

/* reCAPTCHA wrapper */
.g-recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Buttons */
.a-btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.a-btn-primary {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.a-btn-primary:hover {
    background-color: #23272b;
    border-color: #1d2124;
}

.a-btn-block {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    margin-top: 25px;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.footer a {
    color: #343a40;
    font-weight: 500;
    text-decoration: none;
}

.footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}