.wiley-contactus {
    --wc-ink: #003B44;
    --wc-ink-2: #045C66;
    --wc-gold: #C98A3C;
    --wc-border: #E1E9E9;
    --wc-text: #1D2B2D;
    --wc-text-soft: #5B6E70;
    --wc-bg-soft: #F5F8F8;

    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--wc-text);
}

.wiley-contactus__card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 18px rgba(0, 59, 68, .08);
    position: relative;
    overflow: hidden;
}

.wiley-contactus__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--wc-ink), var(--wc-ink-2) 60%, var(--wc-gold));
}

.wiley-contactus__title {
    margin: 6px 0 8px;
    font-size: 23px;
    font-weight: 700;
    color: var(--wc-ink);
}

.wiley-contactus__sub {
    margin: 0 0 26px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--wc-text-soft);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--wc-border);
}

.wiley-contactus__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wiley-contactus__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.wiley-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--wc-ink);
    margin-bottom: 7px;
}

.wiley-field .req {
    color: #C0392B;
    font-weight: 700;
}

.wiley-field input[type="text"],
.wiley-field input[type="tel"],
.wiley-field input[type="email"],
.wiley-field select,
.wiley-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 12px;
    font-size: 14px;
    border: 1px solid var(--wc-border);
    border-radius: 9px;
    background: var(--wc-bg-soft);
    color: var(--wc-text);
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.wiley-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23045C66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.wiley-field input::placeholder,
.wiley-field textarea::placeholder {
    color: #9BB0B1;
}

.wiley-field input:hover,
.wiley-field select:hover,
.wiley-field textarea:hover {
    border-color: #C7D6D6;
}

.wiley-field input:focus,
.wiley-field select:focus,
.wiley-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--wc-ink-2);
    box-shadow: 0 0 0 3px rgba(4, 92, 102, .14);
}

.wiley-field textarea {
    resize: vertical;
    min-height: 96px;
}

.wiley-field__hint {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--wc-text-soft);
}

.wiley-field__error {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
}

/* ---------- "What are you looking for" pill chips ---------- */
.wiley-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wiley-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1px solid var(--wc-border);
    border-radius: 999px;
    background: var(--wc-bg-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--wc-text);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.wiley-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.wiley-pill:hover {
    border-color: var(--wc-ink-2);
}

.wiley-pill:has(input:checked) {
    background: var(--wc-ink);
    border-color: var(--wc-ink);
    color: #fff;
}

.wiley-pill.is-checked {
    background: var(--wc-ink);
    border-color: var(--wc-ink);
    color: #fff;
}

.wiley-pill:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(4, 92, 102, .18);
}

/* ---------- Consent checkbox ---------- */
.wiley-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--wc-text-soft);
    cursor: pointer;
}

.wiley-checkbox input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--wc-ink);
    flex-shrink: 0;
    cursor: pointer;
}

.wiley-checkbox a {
    color: var(--wc-ink);
    font-weight: 600;
}

/* ---------- Submit button ---------- */
.wiley-contactus__actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--wc-border);
    display: flex;
    justify-content: flex-end;
}

.wiley-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--wc-ink), var(--wc-ink-2));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 30px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 59, 68, .25);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.wiley-btn-submit svg {
    transition: transform .15s ease;
}

.wiley-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 59, 68, .32);
    background: linear-gradient(135deg, var(--wc-ink-2), var(--wc-gold));
}

.wiley-btn-submit:hover svg {
    transform: translateX(3px);
}

.wiley-btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .wiley-contactus__card { padding: 26px 20px; }
    .wiley-contactus__actions { justify-content: stretch; }
    .wiley-btn-submit { width: 100%; justify-content: center; }
}
