/**
 * Ambitious Student Application Form CSS
 *
 * Scoped under .asa-form-wrap to avoid affecting Academy LMS,
 * Bricks Builder, or theme styles.
 */

.asa-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.asa-form {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 32px;
    font-family: Arial, Helvetica, sans-serif;
}

.asa-form__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
}

.asa-form__title {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    color: #222222;
}

.asa-form__intro,
.asa-form__footer-note,
.asa-form__hint {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
}

.asa-form__message {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
}

.asa-form__message--success {
    border: 1px solid #cde8d1;
    background: #f2fbf4;
    color: #236b2e;
}

.asa-form__message--error {
    border: 1px solid #f0c4c7;
    background: #fff4f4;
    color: #9f1118;
}

.asa-form__section,
.asa-form__field,
.asa-form__attachments {
    margin-bottom: 18px;
}

.asa-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.asa-form__label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.asa-form__input,
.asa-form__file {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dddddd;
    background: #f7f7f7;
    padding: 10px 12px;
    font-size: 15px;
    color: #333333;
}

.asa-form__input:focus {
    outline: none;
    border-color: #d71920;
    background: #ffffff;
}

.asa-form__onsite {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
}

.asa-form__notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid #d71920;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
    white-space: pre-line;
}

.asa-form__file {
    margin-top: 10px;
    background: #ffffff;
}

.asa-form__button {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: #d71920;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asa-form__button:hover {
    background: #b9151b;
}

.asa-form__button:disabled,
.asa-form__button--sending {
    cursor: wait;
    opacity: 0.85;
}

.asa-form__footer-note {
    margin-top: 14px;
    text-align: center;
}

/* Hide the honeypot from real users but leave it available to bots. */
.asa-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .asa-form-wrap {
        padding: 10px;
    }

    .asa-form {
        padding: 22px;
    }

    .asa-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Immediate file validation messages. */
.asa-form__file-errors {
    margin: 8px 0 12px;
}

.asa-form__file-error {
    margin: 6px 0;
    padding: 10px 12px;
    border-left: 4px solid #c62828;
    background: #fff5f5;
    color: #8a1f1f;
    font-size: 14px;
    line-height: 1.4;
}

/* File upload row with clear/remove button. */
.asa-form__file-row {
    position: relative;
    margin-top: 10px;
}

.asa-form__file-row .asa-form__file {
    margin-top: 0;
    padding-right: 48px;
}

.asa-form__file-remove {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #ffffff;
    color: #777777;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.asa-form__file-remove:hover,
.asa-form__file-remove:focus {
    border-color: #d71920;
    color: #d71920;
    outline: none;
}
