.ad-apply-page {
    width: 100%;
    max-width: 880px;
    margin: 32px auto 72px;
    padding: 0 18px;
    color: #243532;
}

.ad-apply-page h1 {
    margin: 0 0 16px;
    color: #225f56;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.ad-apply-intro {
    margin: 0 0 26px;
    padding: 18px 20px;
    border: 1px solid #b9dcd4;
    border-radius: 14px;
    background: #edf8f5;
    color: #31524c;
    font-size: 0.98rem;
    line-height: 1.8;
}

.ad-apply-form {
    padding: 30px;
    border: 1px solid #d7e5e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(39, 86, 76, 0.08);
}

.ad-apply-form > div {
    margin-bottom: 22px;
}

.ad-apply-form label {
    display: block;
    margin-bottom: 7px;
    color: #294a44;
    font-weight: 700;
}

.ad-apply-form input,
.ad-apply-form select,
.ad-apply-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #b9cec8;
    border-radius: 9px;
    background: #fff;
    color: #263632;
    font: inherit;
    line-height: 1.5;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.ad-apply-form input:focus,
.ad-apply-form select:focus,
.ad-apply-form textarea:focus {
    outline: none;
    border-color: #318a79;
    background: #fbfffe;
    box-shadow: 0 0 0 3px rgba(49, 138, 121, 0.16);
}

.ad-apply-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ad-apply-form hr {
    margin: 34px 0 26px;
    border: 0;
    border-top: 1px solid #d8e7e3;
}

.ad-apply-form h2 {
    margin: 0 0 22px;
    padding: 11px 15px;
    border-left: 5px solid #3b917f;
    border-radius: 4px 10px 10px 4px;
    background: #edf8f5;
    color: #225f56;
    font-size: 1.25rem;
}

.ad-apply-form button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 14px 20px;
    border: 0;
    border-radius: 11px;
    background: #287667;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(40, 118, 103, 0.22);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ad-apply-form button[type="submit"]:hover {
    background: #1f6558;
    transform: translateY(-1px);
    box-shadow: 0 7px 17px rgba(40, 118, 103, 0.27);
}

.ad-apply-form button[type="submit"]:active {
    transform: translateY(0);
}

.ad-apply-errors {
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid #e2a3a3;
    border-radius: 11px;
    background: #fff3f3;
    color: #8b2f2f;
}

.ad-apply-errors p {
    margin: 0 0 8px;
    font-weight: 700;
}

.ad-apply-errors ul {
    margin: 0;
    padding-left: 1.4em;
}

@media (max-width: 600px) {
    .ad-apply-page {
        margin-top: 20px;
        padding: 0 12px;
    }

    .ad-apply-intro {
        padding: 15px;
        font-size: 0.92rem;
    }

    .ad-apply-form {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .ad-apply-form > div {
        margin-bottom: 19px;
    }

    .ad-apply-form input,
    .ad-apply-form select,
    .ad-apply-form textarea {
        font-size: 16px;
    }
}

.ad-period-note {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-left: 4px solid #68a99b;
    border-radius: 7px;
    background: #f1f8f6;
    color: #45635d;
    font-size: 0.92rem;
    line-height: 1.7;
}

.ad-optional {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 20px;
    background: #e8efed;
    color: #61736f;
    font-size: 0.75rem;
    font-weight: 400;
}

.ad-terms-agreement {
    margin: 24px 0 18px;
    padding: 18px;
    border: 1px solid #b8d8d2;
    border-radius: 12px;
    background: #f0f8f6;
}

.ad-terms-agreement label {
    display: grid;
    grid-template-columns:
        20px
        minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    line-height: 1.6;
    cursor: pointer;
}

.ad-terms-agreement
input[type="checkbox"] {
    display: block;
    box-sizing: border-box;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    margin: 3px 0 0 !important;
    padding: 0 !important;
}

.ad-terms-agreement label span {
    display: block;
    min-width: 0;
    margin: 0;
}

.ad-terms-agreement a {
    color: #17685c;
    text-decoration: underline;
}

.ad-terms-agreement p {
    margin: 10px 0 0 30px;
    color: #67807b;
    font-size: 13px;
}
