/* Luxntek — Product Registration */

:root {
    --reg-dark: #011c2f;
    --reg-dark-mid: #06364b;
    --reg-teal: #31bdbd;
    --reg-gold: #ffcc00;
    --reg-muted: #64748b;
    --reg-border: #e2e8f0;
    --reg-bg: #eef2f6;
    --reg-surface: #ffffff;
    --reg-radius: 18px;
}

body.template-registration {
    background: var(--reg-bg) !important;
}

body.template-registration .page.section-header {
    display: none !important;
}

body.template-registration #page-content.reg-page {
    background: var(--reg-bg);
    padding: 48px 0 64px;
}

body.template-registration h1,
body.template-registration h2,
body.template-registration h3,
body.template-registration .reg-intro__title {
    text-transform: none !important;
    letter-spacing: -0.02em;
}

body.template-registration .reg-form input[type="text"],
body.template-registration .reg-form input[type="email"],
body.template-registration .reg-form input[type="date"],
body.template-registration .reg-form select,
body.template-registration .reg-form textarea {
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.reg-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.reg-intro {
    text-align: center;
    margin-bottom: 28px;
}

.reg-intro__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reg-teal);
}

.reg-intro__title {
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--reg-dark);
}

.reg-intro__subtitle {
    margin: 0 auto;
    max-width: 580px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--reg-muted);
}

.reg-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.reg-alert__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.reg-alert.is-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.reg-alert.is-success .reg-alert__icon {
    color: #047857;
    background: #d1fae5;
}

.reg-alert.is-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.reg-alert.is-error .reg-alert__icon {
    color: #b91c1c;
    background: #fee2e2;
}

.reg-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    background: var(--reg-surface);
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(1, 28, 47, 0.08);
}

.reg-panel__main {
    padding: 28px 28px 32px;
}

.reg-panel__guide {
    padding: 28px 24px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(49, 189, 189, 0.12) 0%, transparent 45%),
        linear-gradient(145deg, var(--reg-dark), var(--reg-dark-mid));
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-panel__guide-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.reg-guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.reg-guide-list__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reg-guide-list__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--reg-gold);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.reg-guide-list__icon svg {
    width: 17px;
    height: 17px;
}

.reg-guide-list__item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.reg-guide-list__item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.reg-guide-contact {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.reg-guide-contact a {
    color: var(--reg-gold);
    font-weight: 700;
    text-decoration: none;
}

.reg-qr-panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 18px 18px 16px;
    text-align: left;
    border-radius: 14px;
    border: 1px solid rgba(49, 189, 189, 0.28);
    background: linear-gradient(135deg, rgba(49, 189, 189, 0.08), rgba(255, 255, 255, 0.96));
}

.reg-qr-panel__visual {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--reg-teal);
    background: rgba(49, 189, 189, 0.14);
    border: 1px solid rgba(49, 189, 189, 0.22);
}

.reg-qr-panel__visual svg {
    width: 26px;
    height: 26px;
}

.reg-qr-panel__content {
    flex: 1 1 auto;
    min-width: 0;
}

.reg-qr-panel__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--reg-dark);
}

.reg-qr-panel__desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--reg-muted);
}

.reg-qr-panel__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.product-registration-qr-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.product-registration-qr-status.alert-info,
.product-registration-qr-status:not(.alert-success):not(.alert-danger) {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.product-registration-qr-status.alert-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.product-registration-qr-status.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.product-registration-qr-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    max-width: 100%;
    min-height: 42px;
    padding: 0 18px 0 14px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--reg-dark) !important;
    background: var(--reg-gold) !important;
    box-shadow: 0 8px 18px rgba(255, 204, 0, 0.28);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    vertical-align: middle;
}

.product-registration-qr-btn:hover {
    background: #ffd633 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 204, 0, 0.34);
}

.product-registration-qr-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--reg-dark);
}

.product-registration-qr-btn__icon svg {
    width: 18px;
    height: 18px;
}

.product-registration-qr-btn__text {
    display: inline-block;
    white-space: nowrap;
}

.product-registration-qr-btn .product-registration-qr-capture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 16px;
    border: 0;
    outline: none;
}

.product-registration-qr-btn .product-registration-qr-capture:focus {
    outline: none;
}

#RegQrDecodeRegion {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.reg-form-section {
    margin-bottom: 26px;
}

.reg-form-section:last-of-type {
    margin-bottom: 0;
}

.reg-form-section__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--reg-teal);
    border-bottom: 1px solid var(--reg-border);
}

.reg-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reg-field-grid--single {
    grid-template-columns: 1fr;
}

.reg-form-section .reg-field-grid--single {
    margin-top: 16px;
}

.reg-form .form-group {
    margin-bottom: 0;
}

.reg-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--reg-dark);
}

.reg-form input,
.reg-form select,
.reg-form textarea {
    width: 100%;
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--reg-dark);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-form input,
.reg-form select {
    height: 46px;
    padding: 0 12px;
}

.reg-form textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
    outline: none;
    border-color: rgba(49, 189, 189, 0.7);
    box-shadow: 0 0 0 3px rgba(49, 189, 189, 0.15);
}

.reg-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--reg-muted);
}

.reg-submit-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--reg-border);
}

.reg-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--reg-dark);
    background: var(--reg-gold);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.reg-submit:hover {
    background: #ffd633;
    transform: translateY(-1px);
}

.reg-success-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 36px 32px;
    text-align: center;
    background: var(--reg-surface);
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius);
    box-shadow: 0 20px 50px rgba(1, 28, 47, 0.08);
}

.reg-success-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
}

.reg-success-card__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--reg-dark);
}

.reg-success-card__id {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--reg-teal);
    background: rgba(49, 189, 189, 0.12);
}

.reg-success-card__text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--reg-muted);
}

.reg-success-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.reg-success-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.reg-success-link--primary {
    color: var(--reg-dark) !important;
    background: var(--reg-gold);
}

.reg-success-link--secondary {
    color: var(--reg-dark) !important;
    border: 1px solid var(--reg-border);
    background: #fff;
}

.registration-note,
.registration-note p,
#ProductRegistrationForm,
#ProductRegistrationForm .row,
#ProductRegistrationForm .form-group {
    transform: none !important;
    -webkit-transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

@media (max-width: 991px) {
    .reg-panel {
        grid-template-columns: 1fr;
    }

    .reg-panel__guide {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 767px) {
    body.template-registration #page-content.reg-page {
        padding: 32px 0 48px;
    }

    .reg-qr-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .reg-qr-panel__visual {
        width: 44px;
        height: 44px;
    }

    .reg-panel__main,
    .reg-panel__guide {
        padding: 22px 18px;
    }

    .reg-field-grid {
        grid-template-columns: 1fr;
    }

    .reg-success-card {
        padding: 28px 20px;
    }
}
