/*
 * StudyMEDIC Workshop Registration
 * Screenshot-matched responsive UI.
 * No external fonts, icon libraries, or JavaScript dependencies.
 */

.sm-workshop-shell {
    width: 100%;
    padding: 24px 12px;
    background: #f3f6fb;
}

.sm-workshop-form,
.sm-workshop-form * {
    box-sizing: border-box;
}

.sm-workshop-form {
    --sm-navy: #071d3d;
    --sm-text: #1f2937;
    --sm-muted: #7d8796;
    --sm-border: #c9d2df;
    --sm-line: #e7eaf0;
    --sm-bg: #f5f7fb;
    --sm-panel: #ffffff;
    --sm-yellow: #d6a91f;
    --sm-yellow-soft: #fffdf4;
    --sm-cyan: #38d4e8;
    --sm-green: #08a777;
    --sm-red: #ff6565;

    width: min(100%, 680px);
    margin: 0 auto;
    padding: 26px 28px 22px;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow:
        0 18px 45px rgba(18, 31, 53, .08),
        0 2px 7px rgba(18, 31, 53, .03);
    color: var(--sm-text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.sm-workshop-form input,
.sm-workshop-form select,
.sm-workshop-form button {
    font: inherit;
}

.sm-workshop-form button,
.sm-workshop-form label {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   SECTIONS
========================================================= */

.sm-form-section,
.sm-payment-section {
    padding: 25px 0 27px;
    border-bottom: 1px solid var(--sm-line);
}

.sm-form-section-first {
    padding-top: 0;
}

.sm-payment-section {
    padding-bottom: 0;
    border-bottom: 0;
}

.sm-section-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
}

.sm-section-icon,
.sm-coupon-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff9dc;
    color: var(--sm-navy);
}

.sm-section-icon svg,
.sm-coupon-icon svg {
    width: 16px;
    height: 16px;
}

.sm-section-heading h2 {
    margin: 0;
    color: #1b2535;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.sm-section-index {
    margin-right: 3px;
}

.sm-optional {
    color: #7d8796;
    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   FORM GRID + FIELDS
========================================================= */

.sm-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 19px 18px;
}

.sm-field {
    min-width: 0;
}

.sm-field-full {
    grid-column: 1 / -1;
}

.sm-field-half-alone {
    grid-column: 1 / 2;
}

.sm-field label {
    display: block;
    margin: 0 0 7px;
    color: #313b4a;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.sm-required {
    color: #1f2937;
}

.sm-field-help {
    margin: -1px 0 8px;
    color: #929baa;
    font-size: 9px;
    line-height: 1.45;
}

.sm-field input[type="text"],
.sm-field input[type="email"],
.sm-field input[type="tel"],
.sm-field input[type="number"],
.sm-field select,
.sm-coupon-row input,
.sm-available-coupons select {
    width: 100%;
    height: 41px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--sm-border);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #3a4351;
    box-shadow: none;
    font-size: 10px;
    line-height: 41px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.sm-field input::placeholder,
.sm-coupon-row input::placeholder {
    color: #a4acb8;
    opacity: 1;
}

.sm-field input:focus,
.sm-field select:focus,
.sm-coupon-row input:focus,
.sm-available-coupons select:focus {
    border-color: #8ba2bf;
    box-shadow: 0 0 0 3px rgba(8, 39, 79, .06);
}


/* =========================================================
   SELECT
========================================================= */

.sm-select-wrap {
    position: relative;
}

.sm-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
}

.sm-select-arrow,
.sm-available-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #0d203d;
    border-bottom: 2px solid #0d203d;
    transform: translateY(-68%) rotate(45deg);
    pointer-events: none;
}


/* =========================================================
   PILL RADIO CHOICES
========================================================= */

.sm-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.sm-choice-pill {
    position: relative;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    border: 1px solid #c3ccd8;
    border-radius: 7px;
    background: #fff;
    color: #343d4b !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    cursor: pointer;
    user-select: none;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.sm-choice-pill:hover {
    border-color: #9facbd;
}

.sm-choice-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sm-choice-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 1.3px solid #aeb8c5;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease;
}

.sm-choice-pill:has(input:checked) {
    border-color: #a9b3c0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 31, 54, .04);
}

.sm-choice-pill input:checked + .sm-choice-dot {
    border-color: #d0a410;
    background: #d0a410;
}

.sm-referral-group .sm-choice-pill {
    padding-inline: 11px;
}


/* =========================================================
   UPLOAD
========================================================= */

.sm-upload-box {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    border: 1.5px dashed var(--sm-cyan);
    border-radius: 8px;
    background: #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease;
}

.sm-upload-box input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sm-upload-label {
    min-height: 128px;
    margin: 0 !important;
    padding: 20px 14px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.sm-upload-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa5b3;
}

.sm-upload-icon svg {
    width: 31px;
    height: 31px;
}

.sm-upload-title {
    color: #606a78;
    font-size: 9px;
    font-weight: 700;
}

.sm-upload-help {
    margin-top: 3px;
    color: #9ca5b1;
    font-size: 8px;
    font-weight: 500;
}

.sm-file-name {
    max-width: 100%;
    margin-top: 7px;
    color: #0a7f70;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-upload-box.is-dragging,
.sm-upload-box.has-file {
    border-color: #12b8cf;
    background: #f7fdff;
}

.sm-upload-box.has-error {
    border-color: #ff7777;
    background: #fff8f8;
}

.sm-upload-box.has-error .sm-file-name {
    color: #c64040;
}


/* =========================================================
   COUPON
========================================================= */

.sm-coupon-section {
    margin: 24px 0 0;
    padding: 18px 19px 16px;
    border: 1px dashed #dcc257;
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            #fffef8 0%,
            #fffdf2 100%
        );
}

.sm-coupon-heading {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
}

.sm-coupon-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    background: #fff3bd;
    color: #c29b13;
}

.sm-coupon-heading h3 {
    margin: 1px 0 2px;
    color: #283140;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.sm-coupon-heading p {
    margin: 0;
    color: #8f98a4;
    font-size: 8px;
    line-height: 1.4;
}

.sm-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.sm-coupon-row input {
    height: 39px;
    line-height: 39px;
    font-size: 9px;
    letter-spacing: .8px;
}

.sm-coupon-button {
    min-width: 95px;
    height: 39px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #d6ad24;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .15s ease,
        opacity .15s ease,
        background-color .15s ease;
}

.sm-coupon-button:hover {
    background: #c99f17;
}

.sm-coupon-button:active {
    transform: translateY(1px);
}

.sm-coupon-button:disabled {
    opacity: .62;
    cursor: wait;
}

.sm-coupon-button-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.26);
    font-size: 10px;
    line-height: 1;
}

.sm-coupon-message {
    min-height: 0;
    margin-top: 0;
    font-size: 8px;
    font-weight: 700;
}

.sm-coupon-message.is-success,
.sm-coupon-message.is-error {
    margin-top: 8px;
}

.sm-coupon-message.is-success {
    color: #15805e;
}

.sm-coupon-message.is-error {
    color: #c74646;
}

.sm-available-coupons {
    position: relative;
    height: 37px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #e9da93;
    border-radius: 6px;
    background: rgba(255,255,255,.55);
}

.sm-available-coupons select {
    height: 35px;
    padding: 0 34px 0 32px;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: #a28a34;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .35px;
    line-height: 35px;
    cursor: pointer;
}

.sm-available-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    z-index: 2;
    width: 15px;
    height: 15px;
    color: #c2a02f;
    transform: translateY(-50%);
    pointer-events: none;
}

.sm-available-icon svg {
    width: 15px;
    height: 15px;
}

.sm-available-arrow {
    right: 12px;
    width: 7px;
    height: 7px;
    border-width: 1px;
    border-color: #9b8c5a;
}


/* =========================================================
   PAYMENT
========================================================= */

.sm-payment-section {
    margin-top: 17px;
}

.sm-payment-heading-icon {
    background: var(--sm-navy);
    color: #fff;
}

.sm-payment-box {
    min-height: 175px;
    padding: 21px 21px 17px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: end;
    border-radius: 8px;
    background: #fff;
}

.sm-payment-copy {
    align-self: start;
}

.sm-payment-copy h3 {
    margin: 0 0 10px;
    color: #283243;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
}

.sm-payment-copy p {
    max-width: 330px;
    margin: 0;
    color: #8c96a4;
    font-size: 8px;
    line-height: 1.7;
}

.sm-payment-summary {
    text-align: right;
}

.sm-total-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sm-payment-label {
    margin-bottom: 8px;
    color: #818b99;
    font-size: 8px;
    line-height: 1;
}

.sm-offer-badge {
    margin-bottom: 6px;
    padding: 4px 8px;
    border: 1px solid #45c1a4;
    border-radius: 4px;
    background: #e8fbf6;
    color: #14856c;
    font-size: 7px;
    line-height: 1;
    font-weight: 800;
}

#sm-total-price {
    color: var(--sm-navy);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.4px;
}

.sm-original-price {
    display: none;
}


/* =========================================================
   AGREEMENTS
========================================================= */

.sm-agreements {
    margin: 16px 0 21px;
    padding: 14px 14px 12px;
    display: grid;
    gap: 7px;
    border: 1px solid #ff8585;
    border-radius: 7px;
    background: #fffafa;
}

.sm-checkbox {
    position: relative;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #4d5562 !important;
    cursor: pointer;
}

.sm-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sm-checkbox-box {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ea6767;
    border-radius: 3px;
    background: #fff;
}

.sm-checkbox input:checked + .sm-checkbox-box {
    border-color: var(--sm-navy);
    background: var(--sm-navy);
}

.sm-checkbox input:checked + .sm-checkbox-box::after {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.sm-checkbox-text {
    font-size: 8px;
    line-height: 1.45;
    font-weight: 650;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.sm-register-button {
    width: 100%;
    height: 43px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    background: var(--sm-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color .18s ease,
        opacity .18s ease;
}

.sm-register-button:hover {
    background: #0b2853;
}

.sm-register-button.is-loading {
    opacity: .7;
    pointer-events: none;
}

.sm-lock-icon {
    width: 13px;
    height: 13px;
    display: inline-flex;
}

.sm-lock-icon svg {
    width: 13px;
    height: 13px;
}


/* =========================================================
   WOOCOMMERCE NOTICES
========================================================= */

.woocommerce-notices-wrapper {
    width: min(100%, 680px);
    margin: 16px auto 0;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 8px;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {

    .sm-workshop-shell {
        padding: 12px 6px 18px;
    }

    .sm-workshop-form {
        width: calc(100% - 24px);
        margin: 0 auto;
        padding: 22px 18px 18px;
        border-radius: 14px;
    }

    .sm-payment-box {
        grid-template-columns: minmax(0, 1fr) 175px;
    }
}


@media (max-width: 480px) {

    .sm-workshop-form {
        width: calc(100% - 6px);
        padding: 20px 17px 16px;
    }

    .sm-form-grid {
        gap: 18px 10px;
    }

    .sm-form-section,
    .sm-payment-section {
        padding-top: 23px;
        padding-bottom: 24px;
    }

    .sm-form-section-first {
        padding-top: 0;
    }

    .sm-section-heading {
        margin-bottom: 20px;
    }

    .sm-field label {
        font-size: 9px;
    }

    .sm-field input[type="text"],
    .sm-field input[type="email"],
    .sm-field input[type="tel"],
    .sm-field input[type="number"],
    .sm-field select {
        height: 39px;
        padding-inline: 10px;
        font-size: 9px;
        line-height: 39px;
    }

    .sm-choice-group {
        gap: 8px;
    }

    .sm-choice-pill {
        min-height: 32px;
        padding: 0 10px;
        font-size: 8px !important;
    }

    .sm-referral-group .sm-choice-pill {
        flex: 0 0 auto;
    }

    .sm-upload-box,
    .sm-upload-label {
        min-height: 122px;
    }

    .sm-coupon-section {
        padding: 16px 12px 14px;
    }

    .sm-coupon-row {
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 7px;
    }

    .sm-coupon-button {
        min-width: 0;
        padding-inline: 10px;
        font-size: 8px;
    }

    .sm-payment-box {
        min-height: 165px;
        padding: 18px 13px 15px;
        grid-template-columns: minmax(0, 1fr) 130px;
        gap: 10px;
    }

    .sm-payment-copy p {
        font-size: 7.5px;
    }

    #sm-total-price {
        font-size: 20px;
    }

    .sm-offer-badge {
        padding-inline: 5px;
        font-size: 6px;
        white-space: nowrap;
    }

    .sm-agreements {
        padding: 12px 10px;
    }

    .sm-checkbox-text {
        font-size: 7.5px;
    }
}


@media (max-width: 355px) {

    .sm-form-grid {
        grid-template-columns: 1fr;
    }

    .sm-field-full,
    .sm-field-half-alone {
        grid-column: auto;
    }

    .sm-payment-box {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sm-payment-summary {
        text-align: left;
    }

    .sm-total-block {
        align-items: flex-start;
    }
}
