/* Share with employer page (public or portal) */
.page-template-page-employer-share .employer-share,
.page-employer-share .employer-share {
    padding: 1.5rem 1.5rem 3rem;
}

.employer-share__title {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--global-palette3);
    margin-bottom: 0.5rem;
}

.employer-share__intro {
    font-size: 1.3rem;
    color: var(--global-palette6, #555);
    margin-bottom: 2rem;
    max-width: 42em;
}

.employer-share__cards {
    margin-top: 4rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.employer-share-card {
    flex: 1 1 16rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--global-palette8, #fff);
    border: 1px solid var(--outline-color, #e0e0e0);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.employer-share-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
    background-color: var(--global-palette7);
    border-radius: 8px;
    color: var(--global-palette5);
}

.employer-share-card__icon .ph-light {
    font-size: 2rem;
}

.employer-share-card__heading {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--global-palette3);
    margin: 0 0 0.35em;
    text-transform: capitalize;
}

.employer-share-card__description {
    font-size: 1.3rem;
    color: var(--global-palette6, #555);
    margin: 0 0 2rem;
}

.employer-share-card__message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Button styles from style.css (.nowl-button, .nowl-button--outline) */
.employer-share .nowl-button {
    text-transform: capitalize;
}

.employer-share .nowl-button .employer-share-btn__icon {
    font-size: 1.15em;
}

.employer-share-card .nowl-button {
    margin-top: auto;
}

.employer-share-pdf-btn {
    width: auto;
    display: inline-flex;
}

.employer-share-card__message-box-wrap {
    margin-top: 0.5rem;
}

.employer-share-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--global-palette5, #1a1a1a);
    margin-bottom: 0.35rem;
}

.employer-share-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1.3rem;
    line-height: 1.5;
    border: 1px solid var(--outline-color, #ddd);
    border-radius: 6px;
    background: var(--global-palette9);
    color: var(--global-palette5, #1a1a1a);
    font-family: inherit;
    box-sizing: border-box;
}

.employer-share-textarea:focus {
    outline: none;
    border-color: var(--global-palette1, #3068b6);
    box-shadow: 0 0 0 2px rgba(48, 104, 182, 0.2);
}

.employer-share-message-preview {
    margin-top: 0.35rem;
    padding: 0.75rem 0.85rem;
    font-size: 1.3rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--global-palette5, #1a1a1a);
    background: var(--global-palette7);
    border: 1px solid var(--outline-color, #eee);
    border-radius: 6px;
    min-height: 2.5em;
}

#employer-share-message-preview-label {
    margin-top: 1rem;
}

.employer-share-hint {
    font-size: 1.3rem;
    color: var(--global-palette6, #666);
    margin: 0.4rem 0 0;
}

/* Form */
.employer-share-form {
    margin-bottom: 1.5rem;
}

.employer-share-form__row {
    margin-bottom: 1rem;
}

.employer-share-form__row--checkbox {
    margin-bottom: 1.25rem;
}

.employer-share-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1.3rem;
    border: 1px solid var(--outline-color, #ddd);
    border-radius: 6px;
    background: var(--global-palette9);
    color: var(--global-palette5, #1a1a1a);
    box-sizing: border-box;
}

.employer-share-input:focus {
    outline: none;
    border-color: var(--global-palette1, #3068b6);
}

.employer-share-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--global-palette5, #1a1a1a);
    cursor: pointer;
}

.employer-share-checkbox {
    flex-shrink: 0;
    margin: 0;
    height: 1.6rem;
}

.employer-share-form__error {
    margin-bottom: 1rem;
}

.employer-share-form__error[hidden] {
    display: none;
}

.employer-share-form__actions {
    margin-top: 0.5rem;
}

/* Outreach preview */
.employer-share-outreach-preview {
    padding-top: 1.75rem;
    border-top: 1px solid var(--outline-color, #eee);
    font-family: inherit;
}

.employer-share-outreach-preview__title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--global-palette5, #1a1a1a);
    margin: 0 0 0.5rem;
}

.employer-share-outreach-preview__note {
    font-size: 1rem;
    color: var(--global-palette6, #555);
    margin: 0 0 1.25rem;
}

.employer-share-outreach-preview__body {
    background: var(--global-palette7);
    border: 1px solid var(--outline-color, #eee);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.employer-share-outreach-preview__subject {
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--outline-color, #eee);
}

.employer-share-outreach-preview__text {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--global-palette5, #1a1a1a);
    font-family: inherit;
}

/* Toast – uses nowl-flash success/error styles from style.css */
.employer-share-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    max-width: 90vw;
}

/* Modals */
.employer-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.employer-share-modal[hidden] {
    display: none;
}

.employer-share-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.employer-share-modal__box {
    position: relative;
    width: 100%;
    max-width: 52rem;
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: var(--global-palette8, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.employer-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--outline-color, #eee);
}

.employer-share-modal__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--global-palette5, #1a1a1a);
}

.employer-share-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--global-palette5, #1a1a1a);
    cursor: pointer;
    border-radius: 6px;
}

.employer-share-modal__close:hover {
    background: var(--global-palette7, #f0f0f0);
}

.employer-share-modal__close .ph-bold {
    font-size: 1.25rem;
}

.employer-share-modal__body {
    padding: 1.5rem;
}

/* Smaller text in modals */
.employer-share-modal__body .employer-share-label {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-textarea {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-hint {
    font-size: 1rem;
}

.employer-share-modal__body .employer-share-message-preview {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-input {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-checkbox-label {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-outreach-preview__title {
    font-size: 1.35rem;
}

.employer-share-modal__body .employer-share-outreach-preview__body {
    font-size: 1.05rem;
}

.employer-share-modal__body .employer-share-outreach-preview__text {
    font-size: 1.05rem;
}

/* Mobile: full-width buttons */
@media (max-width: 480px) {
    .employer-share .nowl-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .employer-share .employer-share-card__message-actions {
        flex-direction: column;
    }
}
