/* Save / Add button shake reminder */
@keyframes settings-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.settings-shake {
    animation: settings-shake 0.55s ease-in-out;
}

/* Shared styles for /signup and /expsignup registration + wizard shells */
/* Base +20% text scale for inherited content */
.signup-page-shell,
.signup-page-shell--wizard,
.signup-wizard-shell,
.signup-modal {
    font-size: 120%;
}

.signup-page-shell {
    padding: 48px 16px 64px;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 45%, #ffffff 100%);
    min-height: 60vh;
}

.signup-page-shell--wizard {
    padding-top: 32px;
    padding-bottom: 48px;
}

.signup-page-container {
    max-width: 1100px;
    margin: 0 auto;
}

.signup-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.signup-card-header {
    background: linear-gradient(135deg, #002457 0%, #1d4ed8 100%);
    color: #ffffff;
    text-align: center;
    font-size: 1.98rem;
    font-weight: 700;
    padding: 1.35rem 1.5rem;
    letter-spacing: 0.02em;
}

.signup-card-body {
    padding: 2rem 2.25rem 2.5rem;
}

.signup-intro-title {
    font-size: 1.62rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.signup-intro-text {
    color: #475569;
    font-size: 1.26rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.signup-section-title {
    font-size: 1.44rem;
    font-weight: 700;
    color: #1d4ed8;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.signup-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.signup-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signup-form-field label,
.signup-form-field .field-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
    font-size: 1.18rem;
}

.signup-form-field .requiredlabel {
    color: #64748b;
    font-size: 0.94rem;
    font-weight: 500;
    margin-left: 0.35rem;
}

.signup-form-control,
.signup-card-body input[type="text"],
.signup-card-body input[type="password"],
.signup-card-body input[type="email"],
.signup-card-body select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.signup-form-control:focus,
.signup-card-body input:focus,
.signup-card-body select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.signup-form-control.missingval,
.signup-card-body .missingval {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.signup-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 1rem 0 1.5rem;
}

.signup-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #475569;
    font-size: 1.18rem;
    line-height: 1.5;
}

.signup-checkbox-item input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.signup-legal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.signup-legal-text {
    flex: 1 1 320px;
    color: #64748b;
    font-size: 1.14rem;
    line-height: 1.6;
}

.signup-legal-text a {
    color: #2563eb;
    font-weight: 600;
}

.signup-submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.38rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42);
}

.signup-alert-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 1.18rem;
}

.signup-alert-success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 1.18rem;
}

/* Modal / popup */
.signup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.signup-modal {
    position: fixed;
    z-index: 1100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 32px));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    padding: 2rem;
    text-align: center;
}

.signup-modal-title {
    font-size: 1.74rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}

.signup-modal-body {
    color: #475569;
    font-size: 1.26rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.signup-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.signup-modal-btn {
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-modal-btn--secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.signup-modal-btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.signup-modal-btn:hover {
    transform: translateY(-1px);
}

.signup-settings-wizard > h1 {
    font-size: 1.98rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.signup-settings-wizard > h1:before {
    content: "\f007";
    font-family: FontAwesome;
    color: #2563eb;
    font-size: 1.8rem;
}

.signup-settings-wizard > p {
    color: #64748b;
    line-height: 1.65;
    font-size: 1.22rem;
}

.signup-settings-wizard .formcontainer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.signup-settings-wizard .form-control,
.signup-settings-wizard select,
.signup-settings-wizard input[type="text"],
.signup-settings-wizard input[type="email"],
.signup-settings-wizard input[type="number"],
.signup-settings-wizard textarea {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-settings-wizard .form-control:focus,
.signup-settings-wizard select:focus,
.signup-settings-wizard input:focus,
.signup-settings-wizard textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.signup-settings-wizard .control-label {
    font-weight: 600;
    color: #334155;
}

#tutorialpopup.signup-modal,
#companypopup.signup-modal,
#signuppopup.signup-modal {
    z-index: 1100;
}

.signup-modal-overlay {
    z-index: 1050;
}

@media (max-width: 991px) {
    .signup-form-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .signup-card-body {
        padding: 1.25rem 1rem 1.75rem;
    }

    .signup-form-grid,
    .signup-form-grid--4,
    .signup-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .signup-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .signup-legal-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Wizard shell (profile customization steps) */
.signup-wizard-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem 2.25rem;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 110%;
    font-family: inherit;
    color: #334155;
}

.signup-wizard-shell .bulk-upload-title {
    text-align: center;
    font-size: 2.22rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.signup-wizard-shell .bulk-upload-title i {
    color: #2563eb;
    font-size: 2.4rem;
}

.signup-wizard-shell .settings-wizard-subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 0 1.75rem;
    font-size: 1.26rem;
}

.signup-wizard-shell .bulk-step-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
}

/* Signup wizard typography (matches account settings design) */
.signup-wizard-shell .bulk-step-content h1,
.signup-wizard-shell .signup-settings-wizard > h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.signup-wizard-shell .bulk-step-content > p,
.signup-wizard-shell .signup-settings-wizard > p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.signup-wizard-shell .formcontainer .control-label {
    font-weight: 600;
    color: #334155;
    font-size: 1.05rem;
}

.signup-wizard-shell .formcontainer .form-control,
.signup-wizard-shell .formcontainer select,
.signup-wizard-shell .formcontainer input[type="text"],
.signup-wizard-shell .formcontainer textarea {
    font-size: 1.05rem;
}

.signup-wizard-shell .noticeText {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Modern 9-step progress bar */
.signup-wizard-shell .signup-wizard-progress,
.signup-wizard-shell #progressbar.signup-wizard-progress {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.75rem;
    height: auto;
}

.signup-wizard-shell .signup-wizard-progress-bar,
.signup-wizard-shell .bulk-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 0.5rem;
}

.signup-wizard-shell .signup-wizard-progress-bar::after,
.signup-wizard-shell .bulk-progress-bar::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    z-index: 0;
}

.signup-wizard-shell .settings-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    flex: 1;
    min-width: 0;
    max-width: 11.11%;
}

.signup-wizard-shell .progress-step,
.signup-wizard-shell .signup-wizard-progress-step {
    z-index: 2;
    background-color: #cbd5e1;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
    flex-shrink: 0;
}

.signup-wizard-shell .progress-step i,
.signup-wizard-shell .signup-wizard-progress-step i {
    color: #ffffff;
    font-size: 1.15rem;
    margin: 0 !important;
}

.signup-wizard-shell .progress-step.active,
.signup-wizard-shell .signup-wizard-progress-step.active {
    background-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4), 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.signup-wizard-shell .progress-step.completed,
.signup-wizard-shell .signup-wizard-progress-step.completed {
    background-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.signup-wizard-shell .progress-step.is-link,
.signup-wizard-shell .signup-wizard-progress-step.is-link {
    cursor: pointer;
}

.signup-wizard-shell .progress-step.is-link:hover,
.signup-wizard-shell .signup-wizard-progress-step.is-link:hover {
    transform: translateY(-2px);
}

.signup-wizard-shell .settings-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    max-width: 92px;
    padding: 0 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.signup-wizard-shell .settings-progress-item .progress-step.active + .settings-progress-label,
.signup-wizard-shell .settings-progress-item .signup-wizard-progress-step.active + .settings-progress-label {
    color: #2563eb;
}

@media (max-width: 991px) {
    .signup-wizard-shell .settings-progress-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 768px) {
    .signup-wizard-shell .settings-progress-label {
        display: none;
    }

    .signup-wizard-shell .progress-step,
    .signup-wizard-shell .signup-wizard-progress-step {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .signup-wizard-shell .progress-step i,
    .signup-wizard-shell .signup-wizard-progress-step i {
        font-size: 0.9rem;
    }

    .signup-wizard-shell .signup-wizard-progress-bar::after,
    .signup-wizard-shell .bulk-progress-bar::after {
        top: 17px;
    }
}

/* Privacy modal (express signup) */
#finalPrivacyOverlay {
    backdrop-filter: blur(2px);
}

#finalPrivacyModal {
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    border: none;
    padding: 2rem;
}

#finalPrivacyModal h3 {
    font-size: 1.74rem;
}

#finalPrivacyModal p {
    font-size: 1.2rem;
    line-height: 1.65;
}

#finalPrivacyModal button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.85rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

@media (max-width: 768px) {
    .signup-wizard-shell {
        padding: 1.25rem 1rem;
    }

    .signup-wizard-shell .bulk-step-content {
        padding: 1.25rem;
    }
}

/* Express intro landing page (/expressintro) */
.expressintro-hero-title {
    font-size: 2.22rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.expressintro-hero-sub {
    font-size: 1.26rem;
    color: #475569;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.65;
    font-weight: 600;
}

.expressintro-featured-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    max-width: 560px;
    margin: 0 auto 2rem;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.expressintro-featured-video img {
    width: 100%;
    display: block;
}

.expressintro-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.expressintro-play-overlay:hover {
    background: rgba(15, 23, 42, 0.48);
}

.expressintro-play-triangle {
    width: 0;
    height: 0;
    border-left: 36px solid #fff;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    margin-left: 8px;
}

.expressintro-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.expressintro-video-thumb {
    text-align: center;
}

.expressintro-video-thumb a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.expressintro-thumb-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expressintro-video-thumb a:hover .expressintro-thumb-box {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.expressintro-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expressintro-thumb-box .expressintro-play-overlay {
    background: rgba(15, 23, 42, 0.32);
}

.expressintro-play-icon {
    width: 0;
    height: 0;
    border-left: 28px solid #fff;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 6px;
}

.expressintro-thumb-label {
    margin-top: 0.65rem;
    font-size: 1.08rem;
    color: #334155;
    font-weight: 700;
    line-height: 1.35;
}

.expressintro-reg-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.expressintro-reg-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.expressintro-reg-item {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
}

.expressintro-reg-item .reg-icon {
    color: #2563eb;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.expressintro-reg-item .reg-label {
    font-size: 1.08rem;
    color: #334155;
    font-weight: 700;
}

.expressintro-cta {
    text-align: center;
    padding-top: 0.5rem;
}

.expressintro-cta .signup-submit-btn {
    display: inline-block;
    text-decoration: none;
    line-height: 1.2;
}

.express-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.express-video-modal.is-open {
    display: flex;
}

.express-video-modal .modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.express-video-modal .modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.express-video-modal .modal-close:hover {
    background: #f1f5f9;
}

.express-video-modal .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.express-video-modal .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .expressintro-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expressintro-reg-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .expressintro-hero-title {
        font-size: 1.74rem;
    }

    .expressintro-video-grid {
        grid-template-columns: 1fr;
    }

    .expressintro-reg-icons {
        grid-template-columns: 1fr;
    }
}
