/* =========================================================
   MATERIALS SCIENCE 2027 — REGISTRATION PAGE CSS
   Extracted from the uploaded stylesheet based on the
   selectors/classes/IDs used by the uploaded registration PHP.
   Original CSS declarations preserved; unrelated site CSS omitted.
   ========================================================= */

.abstract-input {

    width: 100%;

    height: 42px;

    padding: 0 14px;

    border: 1px solid #dedede;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #333;

    font-size: 14px;

    transition: all .25s ease;

}


.abstract-input:hover {

    border-color: #c7c7c7;

}


.abstract-input:focus {

    border-color: #d91f2b;

    box-shadow:
        0 0 0 3px rgba(217, 31, 43, .10);

}

.abstract-input.input-error {
    border-color: #dc1f2e !important;

    box-shadow:
        0 0 0 3px rgba(220, 31, 46, 0.08) !important;
}

.abstract-input.input-valid {
    border-color: #198754 !important;

    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.06) !important;
}

.abstract-drop-zone.upload-error {
    border-color: #dc1f2e !important;

    background: rgba(220, 31, 46, 0.02);
}

.abstract-drop-zone.upload-valid {
    border-color: #198754 !important;

    background: rgba(25, 135, 84, 0.02);
}

/* =========================================================
   SUCCESS POPUP
========================================================= */

.abstract-success-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 18, 30, 0.65);

    backdrop-filter: blur(6px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.abstract-success-overlay.show {

    opacity: 1;

    visibility: visible;
}


.abstract-success-popup {

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    border-radius: 22px;

    padding: 38px 32px 32px;

    text-align: center;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);

    transform:
        translateY(25px) scale(0.95);

    transition:
        transform 0.3s ease;
}


.abstract-success-overlay.show .abstract-success-popup {

    transform:
        translateY(0) scale(1);
}


.success-icon {

    width: 78px;

    height: 78px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(135deg,
            rgb(136, 231, 136),
            #277c32);

    color: #ffffff;

    font-size: 34px;

    box-shadow:
        0 12px 30px rgba(215, 25, 40, 0.25);
}


.abstract-success-popup h3 {

    margin: 0 0 10px;

    color: #17243d;

    font-size: 25px;

    font-weight: 700;
}


.abstract-success-popup p {

    margin: 0 auto 25px;

    max-width: 330px;

    color: #697386;

    font-size: 15px;

    line-height: 1.6;
}


.success-close-btn {

    border: 0;

    outline: 0;

    min-width: 150px;

    padding: 12px 25px;

    border-radius: 10px;

    background: #277c32;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.success-close-btn:hover {

    background: #277c32;

    transform: translateY(-1px);
}


/* =========================================================
   PAYMENT SUCCESS - REGISTRATION NUMBER
========================================================= */

.payment-success-registration {

    margin: 0 auto 22px;

    padding: 13px 18px;

    max-width: 300px;

    background: #f4faf5;

    border: 1px solid #cce5d1;

    border-radius: 10px;

}


.payment-success-registration span {

    display: block;

    margin-bottom: 4px;

    color: #697386;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.7px;

}


.payment-success-registration strong {

    display: block;

    color: #277c32;

    font-size: 18px;

    font-weight: 700;

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .abstract-success-popup {

        padding: 32px 22px 25px;

        border-radius: 18px;
    }

    .success-icon {

        width: 68px;

        height: 68px;

        font-size: 28px;
    }

    .abstract-success-popup h3 {

        font-size: 22px;
    }

}

.mxreg-page {
    position: relative;
    min-height: 100vh;
    padding: 24px 15px 40px;
    background: #fff;
    overflow: hidden
}

.mxreg-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .32;
    background-image: radial-gradient(circle, rgba(40, 40, 40, .11) 1.5px, transparent 2.5px), linear-gradient(30deg, transparent 48%, rgba(206, 32, 41, .045) 49%, transparent 50%), linear-gradient(150deg, transparent 48%, rgba(206, 32, 41, .035) 49%, transparent 50%);
    background-size: 95px 95px, 150px 150px, 180px 180px
}

.mxreg-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto
}

.mxreg-intro,
.mxreg-card,
.mxreg-security {
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(0, 0, 0, .055);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .055)
}

.mxreg-intro {
    padding: 18px 26px;
    margin-bottom: 8px
}

.mxreg-intro h1 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px
}

.mxreg-intro p {
    margin: 5px 0 0;
    color: #274477;
    font-size: 14px
}

.mxreg-card {
    margin-bottom: 8px;
    overflow: hidden
}

.mxreg-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 25px;
    border-bottom: 1px solid #e5e5e5
}

.mxreg-card-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 6px;
    background: #6C3FA0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 5px 12px rgba(206, 32, 41, .16)
}

.mxreg-card-head h2 {
    margin: 0;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25
}

.mxreg-card-head p {
    margin: 4px 0 0;
    color: #566173;
    font-size: 13px
}

.mxreg-body {
    padding: 18px 25px 20px
}

.mxreg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 22px
}

.mxreg-field {
    min-width: 0
}

.mxreg-field label {
    display: block;
    margin: 0 0 7px;
    color: #182235;
    font-size: 13px;
    font-weight: 700
}

.mxreg-field label span {
    color: #CE2029
}

.mxreg-control {
    width: 100%;
    height: 42px;
    border: 1px solid #d7dce2;
    border-radius: 7px;
    background: #fff;
    padding: 0 14px;
    color: #465166;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s
}

.mxreg-control:focus {
    border-color: #6C3FA0;
    box-shadow: 0 0 0 3px rgba(206, 32, 41, .08)
}

.mxreg-control.mxreg-invalid {
    border-color: #ce2029 !important;
    box-shadow: 0 0 0 2px rgba(206, 32, 41, .06)
}

.mxreg-error-text {
    display: none;
    margin-top: 5px;
    color: #ce2029;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3
}

.mxreg-error-text.show {
    display: block
}

.mxreg-room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.mxreg-room {
    position: relative;
    min-height: 116px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    padding: 15px
}

.mxreg-room:hover {
    border-color: #6C3FA0
}

.mxreg-room.is-selected {
    border: 1.5px solid #6C3FA0;
    background: linear-gradient(145deg, #fff6f6, #fff)
}

.mxreg-room input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.mxreg-room-radio {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 15px;
    height: 15px;
    border: 1.5px solid #c5cbd3;
    border-radius: 50%
}

.mxreg-room.is-selected .mxreg-room-radio {
    border-color: #6C3FA0;
    box-shadow: inset 0 0 0 4px #fff;
    background: #6C3FA0
}

.mxreg-room i {
    color: #6C3FA0;
    font-size: 26px;
    margin-bottom: 7px
}

.mxreg-room strong {
    color: #172033;
    font-size: 13px
}

.mxreg-room small {
    color: #647084;
    font-size: 11px;
    margin-top: 3px
}

.mxreg-date-grid {
    margin-top: 18px
}

.mxreg-note {
    margin: 10px 0 0;
    color: #586273;
    font-size: 12px
}

.mxreg-compact-card .mxreg-card-head {
    padding-bottom: 15px
}

.mxreg-option-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

.mxreg-option-line label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #263143;
    font-size: 13px;
    cursor: pointer
}

.mxreg-option-line input {
    width: 16px;
    height: 16px;
    accent-color: #6C3FA0
}

.mxreg-option-line>span {
    color: #303746;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.mxreg-option-line>span i {
    color: #9ba2ad;
    margin-left: 4px
}

.mxreg-promo {
    display: flex;
    width: 100%
}

.mxreg-promo input {
    flex: 1;
    height: 42px;
    border: 1px solid #d7dce2;
    border-right: 0;
    border-radius: 7px 0 0 7px;
    padding: 0 13px;
    outline: none;
    font-size: 13px;
    color: #3f4b5e;
    min-width: 0
}

.mxreg-promo input:focus {
    border-color: #6C3FA0
}

.mxreg-promo button {
    width: 140px;
    height: 42px;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: #6C3FA0;
    color: #fff;
    font-weight: 700;
    cursor: pointer
}

.mxreg-coupon-message {
    display: none;
    margin-top: 7px;
    font-size: 12px
}

.mxreg-coupon-message.show {
    display: block
}

.mxreg-coupon-message.success {
    color: #198754
}

.mxreg-coupon-message.error {
    color: #ce2029
}



.mxreg-pay-button {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 7px;
    background: #6C3FA0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    transition: .2s
}

.mxreg-pay-button:hover:not(:disabled) {
    background: green;
    transform: translateY(-1px)
}

.mxreg-pay-button:disabled {
    opacity: .7;
    cursor: not-allowed
}

.mxreg-secure-text {
    text-align: center;
    color: #687181;
    font-size: 12px;
    margin: 11px 0 0
}

.mxreg-secure-text i {
    margin-right: 4px;
    color: #737b88
}

.mxreg-security {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 25px;
    margin-top: 0;
    background: linear-gradient(90deg, #fffafa, #fff)
}

.mxreg-security-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid #816d99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C3FA0;
    font-size: 20px;
    flex: 0 0 44px
}

.mxreg-security h3 {
    margin: 0;
    color: #6C3FA0;
    font-size: 14px;
    font-weight: 800
}

.mxreg-security p {
    margin: 4px 0 0;
    color: #5d6675;
    font-size: 12px
}

.mxreg-hidden {
    display: none
}

@media(max-width:900px) {
    .mxreg-container {
        max-width: 760px
    }

    .mxreg-grid-2 {
        gap: 15px
    }

    .mxreg-room-grid {
        gap: 12px
    }

    .mxreg-card-head,
    .mxreg-body {
        padding-left: 18px;
        padding-right: 18px
    }
}

@media(max-width:600px) {
    .mxreg-page {
        padding: 12px 8px 25px
    }

    .mxreg-intro {
        padding: 15px 16px
    }

    .mxreg-intro h1 {
        font-size: 19px
    }

    .mxreg-intro p {
        font-size: 12px
    }

    .mxreg-grid-2,
    .mxreg-room-grid {
        grid-template-columns: 1fr
    }

    .mxreg-card-head {
        padding: 14px 15px
    }

    .mxreg-body {
        padding: 15px
    }

    .mxreg-room {
        min-height: 105px
    }

    .mxreg-date-grid {
        margin-top: 14px
    }

    .mxreg-option-line {
        align-items: flex-start
    }

    .mxreg-promo button {
        width: 105px
    }

    .mxreg-security {
        padding: 15px;
        gap: 12px
    }

    .mxreg-security-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px
    }

    .mxreg-security h3 {
        font-size: 13px
    }

    .mxreg-security p {
        font-size: 11px
    }
}

.mxreg-payment-card .mxreg-body {
    padding-top: 20px
}

.mxreg-cart {
    width: 100%;
    margin-bottom: 22px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff, #fffafa);
    overflow: hidden
}

.mxreg-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e4e4e4
}

.mxreg-cart-kicker {
    display: block;
    margin-bottom: 3px;
    color: #7a8290;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px
}

.mxreg-cart-head h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 800
}

.mxreg-cart-head h3 i {
    color: #6C3FA0;
    margin-right: 7px
}

.mxreg-cart-total {
    color: #6C3FA0;
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap
}

.mxreg-cart-items {
    padding: 5px 18px
}

.mxreg-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
    border-bottom: 1px solid #ededed;
    color: #505a69;
    font-size: 13px
}

.mxreg-cart-row:last-child {
    border-bottom: 0
}

.mxreg-cart-row strong {
    color: #202837;
    font-weight: 700;
    white-space: nowrap
}

.mxreg-cart-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-top: 1px solid #dedede;
    background: #fff;
    color: #172033;
    font-size: 15px;
    font-weight: 800
}

.mxreg-cart-final strong {
    color: #6C3FA0;
    font-size: 22px;
    font-weight: 900
}

.mxreg-payment-fields {
    margin-top: 17px
}

/* =========================================================
   STRIPE CARD ELEMENTS
   ========================================================= */

.mxreg-stripe-element {
    position: relative;
    width: 100%;
    min-height: 42px;
    height: 42px;

    border: 1px solid #d7dce2;
    border-radius: 7px;

    padding: 10px 12px;

    background: #fff;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

    overflow: visible;
}

.mxreg-stripe-element:focus-within {
    border-color: #6C3FA0;
    box-shadow: 0 0 0 3px rgba(206, 32, 41, .08);
}

.mxreg-stripe-element.mxreg-invalid {
    border-color: #ce2029 !important;
    box-shadow: 0 0 0 2px rgba(206, 32, 41, .07);
}

/* Stripe iframe */
.mxreg-stripe-element iframe {
    display: block !important;
    width: 100% !important;
    height: 20px !important;
    border: 0 !important;
    pointer-events: auto !important;
}

.mxreg-payment-card,
.mxreg-payment-card .mxreg-body,
.mxreg-payment-card .mxreg-field {
    position: relative;
}

.mxreg-payment-card .mxreg-stripe-element {
    isolation: isolate;
}

.mxreg-payment-card #payment_error {
    margin-top: 8px
}

@media(max-width:600px) {
    .mxreg-cart-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px
    }

    .mxreg-cart-total {
        font-size: 19px
    }

    .mxreg-cart-row {
        min-height: 38px;
        font-size: 12px
    }

    .mxreg-cart-final {
        font-size: 14px
    }

    .mxreg-cart-final strong {
        font-size: 20px
    }

    .mxreg-payment-fields {
        margin-top: 14px
    }
}

.mxreg-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mxreg-qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mxreg-qty-btn:hover {
    background: #f3f5f8;
}

.mxreg-qty-btn:active {
    transform: scale(0.95);
}

.mxreg-quantity-control strong {
    min-width: 25px;
    text-align: center;
    font-size: 16px;
}

.mxreg-control.is-invalid,
.abstract-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}

.mxreg-error-text {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.mxreg-error-text:empty {
    display: none;
}

.mxreg-coupon-message.success {
    color: #198754;
}

.mxreg-coupon-message.error {
    color: #dc3545;
}

/* =========================================================
   SELECTED REGISTRATION PLAN
========================================================= */

.selected-plan {
    max-width: 850px;
    margin: 28px auto 0;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    gap: 16px;

    background: linear-gradient(135deg,
            #f4fbff,
            #ffffff);

    border: 1px solid #dcecf5;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(20, 80, 110, 0.08);

    text-align: left;

    position: relative;
    overflow: hidden;
}

.selected-plan::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;

    background: #6C3FA0;
}


/* Icon */

.selected-plan-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(34, 179, 193, 0.12);

    color: #6C3FA0;

    font-size: 22px;
}


/* Information */

.selected-plan-info {
    flex: 1;
}

.selected-plan-label {
    display: block;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #7a8a94;

    margin-bottom: 5px;
}

.selected-plan-main {
    display: flex;
    align-items: center;
    gap: 9px;

    flex-wrap: wrap;
}

.selected-plan-main strong {
    font-size: 20px;
    font-weight: 700;

    color: #17246e;
}

.selected-plan-main span {
    font-size: 14px;

    color: #687780;
}

.selected-plan-divider {
    color: #6C3FA0 !important;
    font-weight: 700;
}


/* Price */

.selected-plan-price {
    text-align: right;

    padding-left: 20px;

    border-left: 1px solid #e2edf2;
}

.selected-plan-price small {
    display: block;

    font-size: 11px;

    color: #7a8a94;

    margin-bottom: 3px;
}

.selected-plan-price strong {
    display: block;

    font-size: 24px;
    font-weight: 800;

    color: #17246e;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .selected-plan {
        padding: 16px;

        gap: 12px;

        align-items: flex-start;
    }

    .selected-plan-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 18px;
    }

    .selected-plan-main strong {
        font-size: 17px;
    }

    .selected-plan-main span {
        font-size: 13px;
    }

    .selected-plan-price {
        padding-left: 12px;
    }

    .selected-plan-price strong {
        font-size: 19px;
    }

    .selected-plan-price small {
        font-size: 9px;
    }

}

/* =========================================================
   PAYMENT / API ERROR ALERT
========================================================= */

.mxreg-api-alert {
    display: none;

    width: 100%;

    margin: 0 0 20px;

    padding: 18px 20px;

    align-items: flex-start;

    gap: 15px;

    position: relative;

    background: linear-gradient(135deg,
            #fff5f5,
            #ffffff);

    border: 1px solid #ffb8b8;

    border-left: 5px solid #ed1c24;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(237, 28, 36, 0.08);

    animation:
        mxregAlertIn .3s ease;
}

.mxreg-api-alert.show {
    display: flex;
}

.mxreg-api-alert-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffe1e1;

    color: #ed1c24;

    font-size: 21px;
}

.mxreg-api-alert-content {
    flex: 1;

    padding-right: 25px;
}

.mxreg-api-alert-content h4 {
    margin: 0 0 5px;

    font-size: 17px;

    font-weight: 700;

    color: #c9151d;
}

.mxreg-api-alert-content p {
    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #5d6268;
}

.mxreg-api-alert-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: #9b5c5c;

    cursor: pointer;

    font-size: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transition:
        background .2s ease,
        color .2s ease;
}

.mxreg-api-alert-close:hover {
    background: #ffe1e1;

    color: #ed1c24;
}

@keyframes mxregAlertIn {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   COUPON MESSAGE
========================================================= */

.mxreg-coupon-message {
    display: none;

    margin-top: 10px;

    padding: 9px 12px;

    border-radius: 7px;

    font-size: 13px;

    line-height: 1.5;
}

.mxreg-coupon-message.show {
    display: block;
}


/* SUCCESS */

.mxreg-coupon-message.success {
    display: block;

    color: #277c32;

    background: #f0faf2;

    border: 1px solid #c9e7ce;
}


/* ERROR */

.mxreg-coupon-message.error {
    display: block;

    color: #c9151d;

    background: #fff4f4;

    border: 1px solid #f0c5c5;
}


/* ICON */

.mxreg-coupon-message i {
    margin-right: 6px;
}
