.pa-profile-form,
.pa-author-profile,
.pa-message {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 760px;
    margin: 40px auto;
    color: #1f302d;
    font-family: inherit;
}

.pa-profile-form *,
.pa-author-profile *,
.pa-message * {
    box-sizing: border-box;
}

.pa-profile-form {
    overflow: hidden;
    border: 1px solid #dce7e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgb(22 54 45 / 10%);
}

.pa-profile-form__header {
    padding: clamp(24px, 5vw, 42px);
    color: #fff;
    background:
        radial-gradient(ellipse at 92% 10%, rgb(191 215 128 / 23%), transparent 36%),
        linear-gradient(125deg, #173d35 0%, #285f50 100%);
}

.pa-profile-form__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #d4e5ba;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pa-profile-form__header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.15;
}

.pa-profile-form__header p {
    max-width: 540px;
    margin: 0;
    color: #e2ece7;
    font-size: 1rem;
    line-height: 1.6;
}

.pa-profile-form__body {
    display: grid;
    gap: 22px;
    padding: clamp(22px, 5vw, 42px);
}

.pa-profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pa-field {
    min-width: 0;
    margin: 0;
}

.pa-field > label {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0 0 8px;
    color: #213c34;
    font-size: 0.97rem;
    font-weight: 700;
}

.pa-required {
    color: #b23d35;
}

.pa-optional {
    color: #667870;
    font-size: 0.82rem;
    font-weight: 500;
}

.pa-profile-form input[type="text"],
.pa-profile-form input[type="date"],
.pa-profile-form input[type="file"],
.pa-profile-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #cbd8d2;
    border-radius: 11px;
    background: #fff;
    color: #1f302d;
    font: inherit;
    font-size: 1rem;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.pa-profile-form textarea {
    min-height: 142px;
    resize: vertical;
}

.pa-profile-form input[type="file"] {
    min-height: 60px;
    padding: 10px;
    background: #f7faf8;
}

.pa-profile-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: #e4eee8;
    color: #244a3d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
}

.pa-profile-form input[type="text"]:focus,
.pa-profile-form input[type="date"]:focus,
.pa-profile-form input[type="file"]:focus,
.pa-profile-form textarea:focus {
    border-color: #397764;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgb(57 119 100 / 15%);
}

.pa-profile-form input::placeholder,
.pa-profile-form textarea::placeholder {
    color: #8a9892;
    opacity: 1;
}

.pa-field__help {
    display: block;
    margin-top: 8px;
    color: #64736d;
    font-size: 0.87rem;
    line-height: 1.5;
}

.pa-consent {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #e0e9e4;
    border-radius: 12px;
    background: #f6f9f7;
}

.pa-consent label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #43544d;
    font-size: 0.91rem;
    line-height: 1.6;
    cursor: pointer;
}

.pa-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #285f50;
}

.pa-profile-form a,
.pa-message a {
    color: #245f4d;
    font-weight: 650;
    text-underline-offset: 3px;
}

.pa-profile-form__submit {
    justify-self: start;
    min-height: 52px;
    padding: 13px 25px;
    border: 0;
    border-radius: 11px;
    background: #245b4b;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.pa-profile-form__submit:hover {
    background: #183f34;
    box-shadow: 0 8px 18px rgb(24 63 52 / 18%);
    transform: translateY(-1px);
}

.pa-profile-form__submit:focus-visible {
    outline: 3px solid #b7cf91;
    outline-offset: 3px;
}

.pa-message {
    padding: 18px 22px;
    border: 1px solid #dce7e2;
    border-radius: 14px;
    background: #f7faf8;
    line-height: 1.6;
}

.pa-message p {
    margin: 0;
}

.pa-message p + p {
    margin-top: 10px;
}

.pa-message.pa-error {
    border-color: #edc7c3;
    background: #fff7f6;
    color: #762d27;
}

.pa-message.pa-success {
    border-color: #c7dfcf;
    background: #f0f8f2;
    color: #27583c;
}

.pa-author-profile {
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid #e0e9e4;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgb(22 54 45 / 8%);
}

.pa-author-profile__image {
    margin-bottom: 20px;
}

.pa-author-profile__photo {
    width: 144px;
    height: 144px;
    border: 5px solid #edf4ef;
    border-radius: 50%;
    object-fit: cover;
}

.pa-author-profile__name {
    margin: 0 0 10px;
    color: #1d4338;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.pa-author-profile__education,
.pa-author-profile__birth-date {
    color: #52645c;
    font-size: 1rem;
    line-height: 1.7;
}

.pa-author-profile__education p {
    margin: 0 0 0.8em;
}

.pa-author-profile__education p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .pa-profile-form,
    .pa-author-profile,
    .pa-message {
        width: calc(100% - 20px);
        margin: 24px auto;
    }

    .pa-profile-form__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pa-profile-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pa-profile-form input,
    .pa-profile-form textarea,
    .pa-profile-form__submit {
        transition: none;
    }
}
