/*
 * ASX Session Downloads – frontend styles
 * Class selectors only. Designed to inherit the active child theme's font family.
 */

.asxsd-wrap {
    width: 100%;
}

.asxsd-form {
    width: 100%;
}

.asxsd-required {
    margin: 0 0 12px;
    color: inherit;
    font-size: 14px;
}

.asxsd-field {
    margin: 0 0 14px;
}

.asxsd-field label {
    display: block;
    margin: 0 0 6px;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
}

.asxsd-field input,
.asxsd-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #8a9299;
    border-radius: 2px;
    background: #ffffff;
    color: #252a30;
    font: inherit;
    font-size: 16px;
}

.asxsd-field small {
    display: block;
    margin-top: 5px;
    color: inherit;
    font-size: 13px;
}

.asxsd-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.asxsd-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.asxsd-consent label {
    margin: 0;
    color: inherit;
    font-size: 14px;
}

.asxsd-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.asxsd-submit {
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: 2px;
    background: #075b64;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.asxsd-submit:hover,
.asxsd-submit:focus {
    background: #004b59;
    color: #ffffff;
}

.asxsd-success {
    width: 100%;
    padding: 34px;
    border-radius: 14px;
    background: #ffffff;
    color: #252a30;
}

.asxsd-success-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 26px;
}

.asxsd-success-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #075b64;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    margin-top: -13px;
}

.asxsd-success h2 {
    margin: 0;
    color: #104b75;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.asxsd-success-intro {
    margin: 0 0 28px;
    color: #343a40;
    font-size: clamp(17px, 2vw, 25px);
    line-height: 1.55;
}

.asxsd-download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 30px;
}

.asxsd-download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 16px 24px;
    border: 2px solid #075b64;
    border-radius: 9px;
    background: #ffffff;
    text-decoration: none;
}

.asxsd-download-link:hover,
.asxsd-download-link:focus {
    background: #f0f8f8;
    text-decoration: underline;
}

.asxsd-download-title {
    color: #075b64;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 600;
}

.asxsd-download-format {
    flex: 0 0 auto;
    color: #555d64;
    font-size: clamp(15px, 1.8vw, 21px);
    text-align: right;
}

.asxsd-contact {
    margin: 0;
    color: #555d64;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.55;
}

.asxsd-contact a {
    color: #006699;
    text-decoration: underline;
}

.asxsd-message {
    padding: 14px 18px;
    border-radius: 4px;
}

.asxsd-error {
    border: 1px solid #b32d2e;
    background: #fcf0f1;
    color: #8a2424;
}

@media (max-width: 600px) {
    .asxsd-success {
        padding: 22px 18px;
    }

    .asxsd-success-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .asxsd-success-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .asxsd-download-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 14px 16px;
    }

    .asxsd-download-format {
        text-align: left;
    }
}


/* Admin submissions filters */
.asxsd-submission-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.asxsd-submission-filters input[type="search"] {
    min-width: 260px;
}

.asxsd-admin .tablenav-pages {
    margin: 8px 0;
}
