/* WooCommerce notices styling */
.woocommerce-error,
ul.woocommerce-error {
    max-width: 480px;
    margin: 0 auto 16px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 10px !important;
    list-style: none !important;
    background: #fff5f5 !important;
    border: 1px solid #fecaca !important;
    color: #c0392b !important;
}

.woocommerce-error::before,
ul.woocommerce-error::before {
    display: none !important;
}

.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
}

.entry-header .entry-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    color: #1a1a1a;
}

.mszb-register-form {
    --mszb-primary: #e74c3c;
    --mszb-primary-hover: #c0392b;
    --mszb-primary-soft: rgba(231, 76, 60, 0.1);
    --mszb-success: #27ae60;
    --mszb-danger: #df3f3f;
    --mszb-warning: #f39c12;
    --mszb-good: #b5c746;
    --mszb-text: #1f1f1f;
    --mszb-muted: #777;
    --mszb-label: #555;
    --mszb-border: #e0e0e0;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 18px;
    background: #fafafa;
}

.mszb-register-form .tabheader {
    text-align: center;
    margin-bottom: 18px;
}

.mszb-register-form .mszb-register-intro {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mszb-muted);
}

.mszb-register-form ul.tab {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #f5f5f5;
    border-radius: 12px;
}

.mszb-register-form ul.tab li {
    flex: 1;
    margin: 0;
}

.mszb-register-form ul.tab li a {
    display: block;
    padding: 11px 8px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mszb-register-form ul.tab li a.active {
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.mszb-register-form .radio-inline {
    display: none;
}

.mszb-register-form .tabcontent {
    display: none;
    position: relative;
    margin-top: 14px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: left;
    animation: mszb-fade-in 0.3s ease;
}

.mszb-register-form .mszb-form-progress {
    margin: -32px -32px 18px;
}

.mszb-register-form .mszb-form-progress__bar {
    height: 3px;
    overflow: hidden;
    background: rgba(31, 31, 31, 0.08);
}

.mszb-register-form .mszb-form-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 56%, #27ae60 100%);
    transition: width 0.3s ease, background 0.3s ease;
}

.mszb-register-form .mszb-form-progress__fill.is-complete {
    background: var(--mszb-success);
}

.mszb-register-form .mszb-form-progress__text {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #7a7a7a;
}

@keyframes mszb-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mszb-register-form .form-row {
    margin: 0 0 16px !important;
}

.mszb-register-form .mszb-field,
.mszb-register-form .mszb-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mszb-register-form .mszb-field {
    position: relative;
}

.mszb-register-form .mszb-field:not(.mszb-field-civility) {
    padding-top: 8px;
}

.mszb-register-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mszb-label);
}

.mszb-register-form .mszb-field:not(.mszb-field-civility) > label {
    position: absolute;
    left: 12px;
    top: -10px;
    margin: 0;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    background: linear-gradient(to bottom, transparent 45%, #fafafa 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.mszb-register-form .mszb-field.mszb-is-focused:not(.mszb-field-civility) > label {
    opacity: 1;
    color: var(--mszb-primary);
}

.mszb-register-form .mszb-field.mszb-has-value:not(.mszb-field-civility) > label {
    opacity: 1;
    color: #777;
}

.mszb-register-form .mszb-checkbox-row label.inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--mszb-label);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.mszb-register-form input[type="text"],
.mszb-register-form input[type="email"],
.mszb-register-form input[type="password"],
.mszb-register-form select {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1.5px solid var(--mszb-border);
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--mszb-text);
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mszb-register-form input::placeholder {
    color: #999;
    transition: opacity 0.2s ease;
}

/* Password toggle eye */
.mszb-register-form .mszb-field-password {
    position: relative;
}

.mszb-register-form .mszb-password-toggle {
    position: absolute;
    right: -10px;
    top: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    z-index: 3;
}

.mszb-register-form .mszb-password-toggle:hover {
    color: #555;
}

.mszb-register-form .mszb-field-password input {
    padding-right: 76px;
}

.mszb-register-form .mszb-field.mszb-is-focused input::placeholder,
.mszb-register-form .mszb-field.mszb-has-value input::placeholder {
    opacity: 0;
}

.mszb-register-form input[type="text"]:focus,
.mszb-register-form input[type="email"]:focus,
.mszb-register-form input[type="password"]:focus,
.mszb-register-form select:focus {
    outline: none;
    border-color: var(--mszb-primary);
    box-shadow: 0 0 0 3px var(--mszb-primary-soft);
}

.mszb-register-form input.mszb-is-valid,
.mszb-register-form select.mszb-is-valid {
    border-color: var(--mszb-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.mszb-register-form input.mszb-is-invalid,
.mszb-register-form select.mszb-is-invalid {
    border-color: var(--mszb-danger);
    box-shadow: 0 0 0 3px rgba(223, 63, 63, 0.12);
}

.mszb-register-form .mszb-has-status input {
    padding-right: 40px;
}

.mszb-register-form .mszb-input-wrap {
    position: relative;
    display: block;
}

.mszb-register-form .mszb-field-status {
    position: absolute;
    right: 14px;
    top: 27%;
    transform: scale(0.9);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

.mszb-register-form .mszb-dob-group {
    position: relative;
}

.mszb-register-form .mszb-dob-status {
    top: auto;
    bottom: 14px;
    right: -28px;
}

.mszb-register-form .mszb-field-status.is-visible {
    opacity: 1;
    transform: scale(1);
}

.mszb-register-form .mszb-field-status.is-success {
    color: var(--mszb-success);
}

.mszb-register-form .mszb-field-status.is-error {
    color: var(--mszb-danger);
}

.mszb-register-form .mszb-name-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.mszb-register-form .mszb-dob-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.mszb-register-form .mszb-dob-row select {
    flex: 1 1 0;
    min-width: 0;
}

.mszb-register-form .mszb-dob-row select:last-child {
    padding-right: 38px;
}

.mszb-register-form .mszb-password-strength {
    margin-top: -4px;
}

.mszb-register-form .mszb-password-strength__bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mszb-register-form .mszb-password-strength__segment {
    height: 6px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.mszb-register-form .mszb-password-strength__segment::before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--mszb-strength-color, #d2d2d2);
    transition: width 0.28s ease, background-color 0.2s ease;
}

.mszb-register-form .mszb-password-strength__segment.is-active::before {
    width: 100%;
}

.mszb-register-form .mszb-password-strength__label {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.mszb-register-form .mszb-password-strength.level-1 {
    --mszb-strength-color: #e74c3c;
}

.mszb-register-form .mszb-password-strength.level-2 {
    --mszb-strength-color: var(--mszb-warning);
}

.mszb-register-form .mszb-password-strength.level-3 {
    --mszb-strength-color: var(--mszb-good);
}

.mszb-register-form .mszb-password-strength.level-4 {
    --mszb-strength-color: var(--mszb-success);
}

.mszb-register-form .mszb-privacy-text {
    margin: 2px 0 16px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

.mszb-register-form .mszb-checkbox-row {
    margin-bottom: 12px !important;
}

.mszb-register-form .mszb-checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mszb-register-form .mszb-checkbox-row input[type="checkbox"]:checked {
    border-color: var(--mszb-primary);
    background: var(--mszb-primary);
}

.mszb-register-form .mszb-checkbox-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mszb-register-form .g-recaptcha {
    margin: 14px 0 14px;
}

.mszb-register-form .mszb-submit-row {
    margin-top: 18px !important;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mszb-register-form .mszb-cta-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    cursor: pointer;
    background-size: 140% 140%;
    background-position: 0% 50%;
    transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease, filter 0.2s ease, background-position 0.4s ease;
}

.mszb-register-form .mszb-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    background-position: 100% 50%;
}

.mszb-register-form .mszb-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.mszb-register-form .mszb-cta-button.is-incomplete {
    opacity: 0.7;
    filter: saturate(0.65);
}

.mszb-register-form .mszb-cta-button.is-ready {
    opacity: 1;
    filter: none;
    animation: mszb-submit-pulse 2s ease-in-out infinite;
}

@keyframes mszb-submit-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.mszb-register-form .tabcontent.mszb-shake {
    animation: mszb-shake 0.4s linear;
}

@keyframes mszb-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

.mszb-register-form .mszb-tab-description {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.mszb-register-form .mszb-cta-outline {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--mszb-primary) !important;
    border-radius: 10px;
    background: transparent !important;
    color: var(--mszb-primary) !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.mszb-register-form .mszb-cta-outline:hover {
    background: var(--mszb-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.mszb-register-form #email_error_message {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #b53022;
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .entry-header .entry-title {
        font-size: 28px;
    }

    .mszb-register-form {
        padding: 24px;
    }

    .mszb-register-form .mszb-name-row {
        grid-template-columns: 90px 1fr 1fr;
        align-items: end;
    }

    .mszb-register-form ul.tab li a {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .mszb-register-form .mszb-name-row {
        grid-template-columns: 80px 1fr;
    }
    .mszb-register-form .mszb-name-row .mszb-field:last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 420px) {
    .mszb-register-form {
        padding: 16px;
    }

    .mszb-register-form .tabcontent {
        padding: 24px 18px;
    }

    .mszb-register-form .mszb-form-progress {
        margin: -24px -18px 16px;
    }

    .mszb-register-form ul.tab li a {
        padding: 10px 6px;
        font-size: 12px;
    }
}
