@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.scholarship-form-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.scholarship-form-section__container {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.scholarship-form-section__intro {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.75rem);
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.scholarship-form-section__title {
    margin: 0;
    color: #020202;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.scholarship-form-section__text {
    color: #020202;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.scholarship-form-section__text > *:first-child {
    margin-top: 0;
}

.scholarship-form-section__text > *:last-child {
    margin-bottom: 0;
}

.scholarship-form-section__form-wrap {
    width: 100%;
}

/* Scholarship application form */
.scholarship-form {
    --scholarship-accent: #1ca3db;
    --scholarship-border: #d5dde3;
    --scholarship-text: #1f2a30;
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    color: var(--scholarship-text);
}

.scholarship-form__section {
    border: 1px solid var(--scholarship-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.scholarship-form__section > legend {
    padding: 0;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--scholarship-accent);
}

.scholarship-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.scholarship-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.scholarship-form__field label {
    font-weight: 500;
    font-size: 0.95rem;
}

.scholarship-form__field input[type="text"],
.scholarship-form__field input[type="email"],
.scholarship-form__field input[type="tel"],
.scholarship-form__field input[type="date"],
.scholarship-form__field input[type="number"],
.scholarship-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--scholarship-border);
    border-radius: 8px;
    font: inherit;
    color: inherit;
    background: #fff;
}

.scholarship-form__field input:focus,
.scholarship-form__field textarea:focus {
    outline: none;
    border-color: var(--scholarship-accent);
    box-shadow: 0 0 0 3px rgba(28, 163, 219, 0.15);
}

.scholarship-form__field textarea {
    resize: vertical;
}

.scholarship-form__field--check label {
    flex-direction: row;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400;
}

.scholarship-form__field--check input {
    margin-top: 1px;
    height: 18px;
    width: 18px;
}

.scholarship-form__hint {
    margin: 0;
    font-size: 0.85rem;
    color: #5c6b73;
}

/* File dropzone */
.scholarship-form__upload-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.scholarship-form__dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scholarship-form__dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.scholarship-form__dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
    border: 2px dashed #9fd4ea;
    border-radius: 12px;
    background: #f7fcff;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.scholarship-form__dropzone.is-dragover .scholarship-form__dropzone-prompt {
    border-color: var(--scholarship-accent);
    background: #eef8fd;
}

.scholarship-form__dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.35rem;
    color: var(--scholarship-accent);
    font-size: 2rem;
}

.scholarship-form__dropzone-title {
    margin: 0;
    color: var(--scholarship-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.scholarship-form__dropzone-types,
.scholarship-form__dropzone-or,
.scholarship-form__dropzone-limit {
    margin: 0;
    color: #6b7a82;
    font-size: 0.875rem;
    line-height: 1.35;
}

.scholarship-form__dropzone-or {
    margin-top: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scholarship-form__dropzone-browse {
    margin-top: 0.15rem;
    padding: 0.55rem 1.4rem;
    border: 1.5px solid var(--scholarship-accent);
    border-radius: 8px;
    background: #fff;
    color: var(--scholarship-accent);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.scholarship-form__dropzone-browse:hover,
.scholarship-form__dropzone-browse:focus-visible {
    background: var(--scholarship-accent);
    color: #fff;
    outline: none;
}

.scholarship-form__dropzone-limit {
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.scholarship-form__dropzone-file {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #f3f6f8;
}

.scholarship-form__dropzone-file[hidden] {
    display: none;
}

.scholarship-form__dropzone-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--scholarship-accent);
    font-size: 1.25rem;
}

.scholarship-form__dropzone-file-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.scholarship-form__dropzone-file-name {
    overflow: hidden;
    color: var(--scholarship-text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scholarship-form__dropzone-file-size {
    color: #6b7a82;
    font-size: 0.8rem;
    line-height: 1.3;
}

.scholarship-form__dropzone-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #c0392b;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.scholarship-form__dropzone-remove:hover,
.scholarship-form__dropzone-remove:focus-visible {
    background: rgba(192, 57, 43, 0.1);
    outline: none;
}

.scholarship-form__signature-input {
    width: 100%;
}

.scholarship-form__signature-preview {
    min-height: 4.5rem;
    margin-top: 0.85rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--scholarship-border);
    border-radius: 8px;
    background: #fff;
    font-family: "Great Vibes", cursive;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: #111111;
    word-break: break-word;
}

.scholarship-form__signature-preview[hidden] {
    display: none;
}

.scholarship-form__actions {
    display: flex;
    justify-content: flex-start;
}

.scholarship-form__submit {
    background: var(--scholarship-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.25rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.scholarship-form__submit:hover {
    background: #1582af;
}

.scholarship-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.scholarship-form__message {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
}

.scholarship-form__message--success {
    background: #e6f7ec;
    color: #1a7f3c;
    border: 1px solid #b7e4c7;
}

.scholarship-form__message--error {
    background: #fdecec;
    color: #b02a2a;
    border: 1px solid #f5c2c2;
}

@media (max-width: 640px) {
    .scholarship-form__row {
        grid-template-columns: 1fr;
    }
}
