/* ==========================================================================
   SHIFTIFY CHANNEL PARTNERS & BOOKING DESK
   MODULE 3 — PORTAL & ONBOARDING ARCHITECTURE
   ========================================================================== */

.channel-page {
    width: 100%;
    background: #ffffff;
    color: #1a1f26;
    overflow: hidden;
}

.channel-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 24px 70px;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.channel-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%,
            rgba(255, 85, 0, .18),
            transparent 27%),
        linear-gradient(110deg,
            #001f4d 0%,
            #002b66 58%,
            #073c7b 100%);
    color: #ffffff;
}

.channel-hero::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .025),
        0 0 0 90px rgba(255, 255, 255, .018),
        0 0 0 135px rgba(255, 255, 255, .012);
}

.channel-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255, 255, 255, .14) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, .14) 1px,
            transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to right,
            black 0%,
            black 45%,
            transparent 85%);
    -webkit-mask-image: linear-gradient(to right,
            black 0%,
            black 45%,
            transparent 85%);
}

.channel-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.channel-hero-content {
    max-width: 800px;
}

.channel-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50px;
    background: rgba(255, 255, 255, .055);
    color: #ff9875;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.channel-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.channel-hero h1 span {
    display: block;
    color: #ff6330;
}

.channel-hero-content>p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.channel-hero-line {
    width: 42px;
    height: 3px;
    margin: 12px 0 7px;
    border-radius: 10px;
    background: #ff5500;
}

.channel-hero-content small {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    letter-spacing: .35px;
}


/* ==========================================================================
   HERO BADGE
   ========================================================================== */

.channel-hero-badge {
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

.channel-badge-number {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg,
            #ff6837,
            #ff4d0d);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.channel-hero-badge strong {
    display: block;
    color: #ffffff;
    font-size: 12px;
}

.channel-hero-badge span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .5);
    font-size: 8px;
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.channel-section {
    margin-bottom: 62px;
}

.channel-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 23px;
}

.channel-section-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff1e9;
    color: #ff5500;
    font-size: 11px;
    font-weight: 800;
}

.channel-label {
    display: block;
    margin-bottom: 4px;
    color: #ff5500;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.channel-section-heading h2 {
    max-width: 850px;
    margin: 0;
    color: #002b66;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.7px;
}


/* ==========================================================================
   INTRO
   ========================================================================== */

.channel-intro-box {
    max-width: 1100px;
    margin-bottom: 27px;
    padding: 20px 23px;
    border-left: 3px solid #ff5500;
    border-radius: 0 10px 10px 0;
    background: #f7f9fc;
}

.channel-intro-box p {
    margin: 0 0 11px;
    color: #56616e;
    font-size: 13px;
    line-height: 1.7;
}

.channel-intro-box p:last-child {
    margin-bottom: 0;
}

.channel-subheading {
    margin: 0 0 15px;
    color: #002b66;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;
}


/* ==========================================================================
   BENEFITS
   ========================================================================== */

.channel-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.channel-benefit-card {
    position: relative;
    padding: 19px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.channel-benefit-card:hover {
    transform: translateY(-3px);
    border-color: #ffd1bf;
    box-shadow: 0 12px 30px rgba(0, 43, 102, .07);
}

.channel-benefit-card>span {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
    border-radius: 6px;
    background: #fff2eb;
    color: #ff5500;
    font-size: 8px;
    font-weight: 800;
}

.channel-benefit-card h4 {
    margin: 0 0 7px;
    color: #002b66;
    font-size: 14px;
    line-height: 1.35;
}

.channel-benefit-card p {
    margin: 0;
    color: #68727d;
    font-size: 11px;
    line-height: 1.62;
}


/* ==========================================================================
   DASHBOARD NOTE
   ========================================================================== */

.channel-dashboard-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid #dce7f3;
    border-radius: 10px;
    background: #f5f9fd;
}

.channel-note-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #002b66;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.channel-dashboard-note strong {
    display: block;
    margin-bottom: 3px;
    color: #002b66;
    font-size: 12px;
}

.channel-dashboard-note p {
    margin: 0;
    color: #66717e;
    font-size: 10px;
    line-height: 1.6;
}


/* ==========================================================================
   STEP
   ========================================================================== */

.channel-step {
    margin-bottom: 20px;
    padding: 21px;
    border: 1px solid #e5e9ef;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 43, 102, .025);
}

.channel-step:last-child {
    margin-bottom: 0;
}

.channel-step-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.channel-step-number {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #002b66;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.channel-step-header>div>span {
    color: #ff5500;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .8px;
}

.channel-step-header h3 {
    margin: 2px 0 0;
    color: #002b66;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}


/* ==========================================================================
   FIELDS
   ========================================================================== */

.channel-fields-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 15px;
}

.channel-field {
    min-width: 0;
}

.channel-field-full {
    grid-column: 1 / -1;
}

.channel-field>label {
    display: block;
    margin-bottom: 5px;
    color: #303945;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 750;
}

.channel-control {
    width: 100%;
    min-height: 42px;
    display: block;
    padding: 9px 12px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #fafbfc;
    color: #66717e;
    font-size: 9px;
    line-height: 1.45;
    box-sizing: border-box;
    outline: none;
}

.channel-control:focus {
    border-color: #ff5500;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, .08);
}

.channel-control::placeholder {
    color: #7a838e;
}


/* ==========================================================================
   MOBILE / OTP ACTION
   ========================================================================== */

.channel-control-action {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #fafbfc;
    box-sizing: border-box;
}

.channel-control-action input {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 6px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #303945;
    font-size: 9px;
}

.channel-control-action button {
    flex: 0 0 auto;
    border: 0;
    padding: 7px 10px;
    border-radius: 5px;
    background: #002b66;
    color: #ffffff;
    font-size: 7px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}

.channel-control-action button:hover {
    background: #ff5500;
    transform: translateY(-1px);
}


/* ==========================================================================
   CHECKBOXES
   ========================================================================== */

.channel-checkbox-box {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #fafbfc;
}

.channel-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #56616e !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.channel-checkbox input {
    accent-color: #ff5500;
}

.channel-field-hint {
    display: block;
    margin-top: 5px;
    color: #8a939e;
    font-size: 7px;
    line-height: 1.4;
}


/* ==========================================================================
   LEGAL
   ========================================================================== */

.channel-legal-section {
    margin-bottom: 50px;
}

.channel-legal-intro {
    max-width: 950px;
    margin-bottom: 19px;
}

.channel-legal-intro p {
    margin: 0;
    color: #606a76;
    font-size: 12px;
    line-height: 1.65;
}

.channel-agreement-card,
.channel-acceptance-card {
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.channel-agreement-card {
    margin-bottom: 15px;
}

.channel-agreement-header,
.channel-acceptance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    background: #f7f9fc;
}

.channel-agreement-header h3,
.channel-acceptance-header h3 {
    margin: 0;
    color: #002b66;
    font-size: 14px;
    line-height: 1.3;
}

.channel-document-badge {
    padding: 4px 7px;
    border-radius: 5px;
    background: #fff0e9;
    color: #ff5500;
    font-size: 7px;
    font-weight: 800;
}

.channel-agreement-viewer {
    height: 170px;
    padding: 18px 20px;
    overflow-y: auto;
    color: #69727d;
    font-size: 10px;
    line-height: 1.65;
    scrollbar-width: thin;
}

.channel-scroll-content p {
    margin: 0;
}


/* ==========================================================================
   ACCEPTANCE
   ========================================================================== */

.channel-acceptance-card {
    padding-bottom: 17px;
}

.channel-acceptance-header {
    justify-content: flex-start;
    margin-bottom: 17px;
}

.channel-lock-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #002b66;
    font-size: 13px;
}

.channel-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 19px 17px;
    padding: 13px;
    border: 1px solid #e7ebef;
    border-radius: 8px;
    background: #fafbfc;
}

.channel-consent-checkbox {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.channel-consent-checkbox input {
    width: 15px;
    height: 15px;
    accent-color: #ff5500;
}

.channel-consent-checkbox span {
    display: none;
}

.channel-consent p {
    margin: 0;
    color: #626c78;
    font-size: 9px;
    line-height: 1.6;
}


/* ==========================================================================
   E-SIGN
   ========================================================================== */

.channel-esign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 19px 15px;
    padding: 16px;
    border-radius: 9px;
    background:
        linear-gradient(110deg,
            #002b66,
            #073d82);
    color: #ffffff;
}

.channel-esign-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.channel-esign-icon {
    flex: 0 0 auto;
    font-size: 16px;
}

.channel-esign h4 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.3;
}

.channel-esign p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: 8px;
    line-height: 1.55;
}

.channel-sign-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: #ff5500;
    color: #ffffff;
    font-size: 8px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}

.channel-sign-button:hover {
    background: #e94b00;
    transform: translateY(-1px);
}

.channel-sign-button span {
    font-size: 12px;
}


/* ==========================================================================
   COMPLETION
   ========================================================================== */

.channel-completion {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 19px;
    padding: 11px 13px;
    border-radius: 7px;
    background: #f0faf4;
}

.channel-completion-icon {
    color: #16964c;
    font-size: 12px;
    font-weight: 800;
}

.channel-completion p {
    margin: 0;
    color: #5d6c64;
    font-size: 8px;
    line-height: 1.6;
}


/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.channel-final-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 27px 30px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(110deg,
            #002b66,
            #073b78);
    color: #ffffff;
    box-shadow:
        0 15px 40px rgba(0, 43, 102, .13);
}

.channel-final-cta::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -110px;
    top: -135px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, .025),
        0 0 0 80px rgba(255, 255, 255, .015);
}

.channel-final-cta>div {
    position: relative;
    z-index: 2;
    max-width: 730px;
}

.channel-final-cta .channel-label {
    color: #ff9875;
}

.channel-final-cta h2 {
    margin: 5px 0 7px;
    color: #ffffff;
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.2;
    letter-spacing: -.5px;
}

.channel-final-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: 10px;
    line-height: 1.6;
}

.channel-cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 11px 15px;
    border-radius: 7px;
    background: #ff5500;
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow:
        0 7px 20px rgba(255, 85, 0, .18);
    transition:
        transform .2s ease,
        background .2s ease;
}

.channel-cta-button:hover {
    background: #e94b00;
    transform: translateY(-2px);
}

.channel-cta-button span {
    font-size: 14px;
}


/* ==========================================================================
   LARGE TABLET
   ========================================================================== */

@media (max-width: 1100px) {

    .channel-container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .channel-hero-container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .channel-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 991px) {

    .channel-hero {
        min-height: 230px;
    }

    .channel-hero-container {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .channel-hero-badge {
        min-width: 175px;
    }

    .channel-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-esign {
        align-items: flex-start;
        flex-direction: column;
    }

    .channel-sign-button {
        width: 100%;
    }

    .channel-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .channel-hero {
        min-height: auto;
    }

    .channel-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 27px;
        padding-bottom: 27px;
    }

    .channel-hero-content {
        max-width: 100%;
    }

    .channel-hero h1 {
        font-size: 31px;
    }

    .channel-hero-content>p {
        font-size: 12px;
    }

    .channel-hero-badge {
        width: auto;
        min-width: 0;
        max-width: 260px;
    }

    .channel-container {
        padding: 38px 18px 45px;
    }

    .channel-section {
        margin-bottom: 48px;
    }

    .channel-section-heading {
        gap: 10px;
        margin-bottom: 19px;
    }

    .channel-section-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .channel-section-heading h2 {
        font-size: 22px;
    }

    .channel-intro-box {
        padding: 17px 18px;
    }

    .channel-intro-box p {
        font-size: 11px;
    }

    .channel-benefits-grid {
        grid-template-columns: 1fr;
    }

    .channel-step {
        padding: 17px;
    }

    .channel-fields-grid {
        grid-template-columns: 1fr;
        row-gap: 13px;
    }

    .channel-field-full {
        grid-column: auto;
    }

    .channel-dashboard-note {
        padding: 14px;
    }

    .channel-control-action {
        align-items: stretch;
        flex-direction: column;
        padding: 5px;
    }

    .channel-control-action button {
        width: 100%;
        padding: 7px;
    }

    .channel-checkbox-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-final-cta {
        padding: 23px 20px;
    }

    .channel-cta-button {
        width: 100%;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .channel-hero-container {
        padding-top: 23px;
        padding-bottom: 23px;
    }

    .channel-eyebrow {
        font-size: 7px;
        letter-spacing: .9px;
    }

    .channel-hero h1 {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .channel-hero-content>p {
        font-size: 11px;
    }

    .channel-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .channel-section-heading h2 {
        font-size: 20px;
    }

    .channel-step-header h3 {
        font-size: 15px;
    }

    .channel-step {
        padding: 15px;
    }

    .channel-control {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 8px;
    }

    .channel-agreement-header,
    .channel-acceptance-header {
        padding: 14px;
    }

    .channel-agreement-viewer {
        padding: 15px;
    }

    .channel-consent,
    .channel-esign,
    .channel-completion {
        margin-left: 14px;
        margin-right: 14px;
    }

    .channel-final-cta h2 {
        font-size: 21px;
    }

}


/* ==========================================================================
   EXTRA SMALL
   ========================================================================== */

@media (max-width: 360px) {

    .channel-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .channel-hero h1 {
        font-size: 25px;
    }

    .channel-section-number {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 9px;
    }

    .channel-step-number {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .channel-step-header h3 {
        font-size: 14px;
    }

}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.channel-control:focus-visible,
.channel-control-action button:focus-visible,
.channel-sign-button:focus-visible,
.channel-cta-button:focus-visible {
    outline: 3px solid rgba(255, 85, 0, .3);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .channel-page *,
    .channel-page *::before,
    .channel-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}