/* Unified unbraider registration page */

body.tdb-page-register .page-content {
    padding-left: 0;
    padding-right: 0;
}

body.tdb-page-register .tdb-customer-cta-fixed {
    display: none !important;
}

.tdb-register-section {
    position: relative;
    padding: 1.75rem 0 3.5rem;
    background:
        radial-gradient(circle at 8% 12%, rgba(196, 154, 72, 0.28), transparent 32%),
        radial-gradient(circle at 92% 80%, rgba(112, 89, 7, 0.16), transparent 28%),
        linear-gradient(180deg, #f6f0e4 0%, #ebe3d2 100%);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.tdb-register-container {
    width: 100%;
    max-width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.85rem, 2.4vw, 1.75rem);
    position: relative;
    z-index: 1;
}

.tdb-register-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

@media (min-width: 992px) {
    .tdb-register-shell {
        grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
        align-items: stretch;
        gap: 1.25rem;
        min-height: 680px;
    }
}

.tdb-register-info {
    position: relative;
    overflow: hidden;
    color: #f7f1e6;
    background:
        linear-gradient(160deg, #2c2112 0%, #1b140c 58%, #3a2a14 100%);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(26, 18, 8, 0.22);
}

.tdb-register-info-glow,
.tdb-register-info::before {
    content: '';
    position: absolute;
    pointer-events: none;
}

.tdb-register-info::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -80px;
    background: radial-gradient(circle, rgba(212, 168, 78, 0.28) 0%, transparent 68%);
}

.tdb-register-info-glow {
    width: 220px;
    height: 220px;
    left: -70px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(255, 214, 130, 0.16) 0%, transparent 70%);
}

.tdb-register-info-inner {
    padding: 2rem 1.6rem 1.7rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .tdb-register-info {
        display: flex;
        flex-direction: column;
    }

    .tdb-register-info-inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 2.35rem 2rem 2rem;
    }
}

.tdb-register-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.85rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f3dfb0;
    background: rgba(243, 223, 176, 0.1);
    border: 1px solid rgba(243, 223, 176, 0.22);
}

.tdb-register-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fffaf1;
    letter-spacing: -0.035em;
}

.tdb-register-title em {
    display: block;
    margin-top: 0.15rem;
    font-style: italic;
    font-weight: 500;
    color: #e8c57a;
}

.tdb-register-intro {
    margin: 0 0 1.4rem;
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(247, 241, 230, 0.78);
    max-width: 36ch;
}

.tdb-register-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 520px) {
    .tdb-register-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tdb-register-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 197, 122, 0.16);
    border-radius: 16px;
    font-size: 0.82rem;
    color: rgba(247, 241, 230, 0.82);
}

.tdb-register-highlight-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #d4a84e, #8a6208);
    color: #1b140c;
    flex-shrink: 0;
}

.tdb-register-highlights strong {
    display: block;
    color: #fffaf1;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
}

.tdb-register-highlights small {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
    color: rgba(247, 241, 230, 0.62);
}

.tdb-register-label {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8c57a;
}

.tdb-register-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.tdb-register-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(247, 241, 230, 0.84);
}

.tdb-register-benefits i {
    margin-top: 0.18rem;
    color: #e8c57a;
    width: 1rem;
    text-align: center;
}

.tdb-register-steps ol {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.tdb-register-steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.86rem;
    color: rgba(247, 241, 230, 0.82);
}

.tdb-register-steps span {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1b140c;
    background: #e8c57a;
}

.tdb-register-details {
    border: 1px solid rgba(232, 197, 122, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 0;
    overflow: hidden;
    margin-top: auto;
}

.tdb-register-details summary {
    padding: 0.75rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #fffaf1;
    cursor: pointer;
    list-style: none;
}

.tdb-register-details summary::-webkit-details-marker {
    display: none;
}

.tdb-register-details summary::after {
    content: '+';
    float: right;
    color: #e8c57a;
    font-weight: 700;
}

.tdb-register-details[open] summary::after {
    content: '\2212';
}

.tdb-register-details ol,
.tdb-register-details ul {
    margin: 0;
    padding: 0 0.95rem 0.95rem 1.7rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(247, 241, 230, 0.7);
}

.tdb-register-details li + li {
    margin-top: 0.35rem;
}

/* Right form panel */
.tdb-register-form-pane {
    background: rgba(255, 252, 247, 0.92);
    scroll-margin-top: 1rem;
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(112, 89, 7, 0.1);
    box-shadow: 0 22px 50px rgba(26, 18, 8, 0.1);
    backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
    .tdb-register-form-pane {
        display: flex;
        flex-direction: column;
    }

    .tdb-register-form-inner {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

.tdb-register-form-inner {
    padding: 1.75rem 1.45rem 2rem;
}

@media (min-width: 992px) {
    .tdb-register-form-inner {
        padding: 2.15rem 2.15rem 2.35rem;
    }
}

.tdb-register-form-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1b140c;
    letter-spacing: -0.03em;
}

.tdb-register-form-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6256;
}

.tdb-founder-perk {
    margin: 0 0 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(112, 89, 7, 0.12) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(232, 214, 140, 0.35) 100%);
    border: 1px solid rgba(112, 89, 7, 0.22);
    box-shadow: 0 6px 18px rgba(112, 89, 7, 0.08);
}

.tdb-founder-perk--form {
    margin-top: 0.9rem;
    margin-bottom: 0;
}

.tdb-founder-perk-badge {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #705907;
}

.tdb-founder-perk-title {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1f2e;
    line-height: 1.35;
}

.tdb-founder-perk-copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #4a5568;
}

.tdb-register-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tdb-register-modal.is-open {
    display: flex;
}

.tdb-register-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 8, 0.55);
}

.tdb-register-modal-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.tdb-founder-poster-modal {
    z-index: 10060;
    padding: 0;
    background: transparent;
}

.tdb-founder-poster-modal .tdb-register-modal-backdrop {
    background: rgba(12, 10, 6, 0.72);
}

.tdb-founder-poster-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    overflow: visible;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdb-founder-poster-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
}

.tdb-founder-poster-hit {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    max-width: 100%;
    max-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.tdb-founder-poster-close {
    position: absolute;
    z-index: 2;
    top: 0.65rem;
    right: calc(-3rem - 0.45rem);
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1f2e;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.tdb-founder-poster-close::before {
    content: "";
    position: absolute;
    inset: -0.35rem;
}

.tdb-founder-poster-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(calc(100vw - 5rem), 520px);
    max-height: calc(100dvh - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 767px) {
    .tdb-founder-poster-card {
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px)) max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
    }

    .tdb-founder-poster-close {
        top: calc(-3rem - 0.35rem);
        right: 0;
        width: 3rem;
        height: 3rem;
        font-size: 1.85rem;
    }

    .tdb-founder-poster-img {
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 4.5rem);
        max-height: calc(100vh - 4.5rem);
    }
}

.tdb-register-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.tdb-register-modal-icon {
    color: #2d6a2d;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.tdb-register-modal-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1f2e;
}

.tdb-register-modal-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #4a5568;
}

.tdb-register-modal-steps {
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8f6f2;
    border: 1px solid #ece6da;
    margin-bottom: 0.85rem;
}

.tdb-register-modal-steps-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #705907;
}

.tdb-register-modal-steps ol {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #374151;
}

.tdb-register-modal-steps li + li {
    margin-top: 0.35rem;
}

.tdb-register-modal-note {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #2d6a2d;
}

.tdb-register-modal-note.is-warning {
    color: #9a6700;
}

.tdb-register-modal-btn {
    min-width: 100%;
    border-radius: 11px !important;
}

.tdb-form-progress {
    display: flex;
    gap: 0.6rem;
    margin: 1.25rem 0 1.45rem;
}

.tdb-form-progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    background: #f4eee3;
    border: 1px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tdb-form-progress-step.is-active,
.tdb-form-progress-step.is-done {
    opacity: 1;
    background: #fff;
    border-color: rgba(138, 98, 8, 0.2);
    box-shadow: 0 6px 16px rgba(112, 89, 7, 0.08);
}

.tdb-form-progress-num {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: #e5d8bf;
    color: #705907;
    flex-shrink: 0;
}

.tdb-form-progress-step.is-active .tdb-form-progress-num {
    background: linear-gradient(160deg, #c49a48, #705907);
    color: #fff;
}

.tdb-form-progress-step.is-done .tdb-form-progress-num {
    background: #2d6a2d;
    color: #fff;
}

.tdb-form-progress-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a4034;
}

/* Form fields */
.tdb-register-form .form-group {
    margin-bottom: 1rem;
}

.tdb-register-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a3228;
}

.tdb-register-form .form-group input,
.tdb-register-form .form-group textarea,
.tdb-register-form .form-group select {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1px solid #e4dac8;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #fffdf9;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tdb-register-form .form-group input:focus,
.tdb-register-form .form-group textarea:focus,
.tdb-register-form .form-group select:focus {
    border-color: #8a6208;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 154, 72, 0.16);
    outline: none;
}

.tdb-register-form h6 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6208;
    margin-bottom: 1rem;
}

.tdb-register-form .required {
    color: #c0392b;
}

.tdb-register-schedule-note {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4faf4, #eef6ee);
    border: 1px solid #d5ead5;
}

.tdb-register-schedule-note i {
    color: #2d6a2d;
    margin-top: 0.1rem;
}

.tdb-register-schedule-note p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #3d4a3a;
}

.tdb-register-submit {
    min-width: 100%;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(112, 89, 7, 0.24) !important;
}

.tdb-register-form .text-muted {
    font-size: 0.82rem;
}

.address-validation-status {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    display: none;
}

.address-validation-status.success {
    color: #28a745;
    display: block;
}

.address-validation-status.error {
    color: #dc3545;
    display: block;
}

.alert-danger, .alert-success {
    border-radius: 10px;
    font-size: 0.9rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 1rem;
}

.loading-spinner.active {
    display: block;
}

/* Mobile sticky apply */
.tdb-mobile-apply-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0));
    text-align: center;
    background: #705907;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 -4px 20px rgba(10, 19, 46, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tdb-mobile-apply-bar.is-visible {
    transform: translateY(0);
}

@media (max-width: 991px) {
    .tdb-mobile-apply-bar {
        display: block;
    }

    body.tdb-page-register {
        padding-bottom: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdb-mobile-apply-bar,
    .tdb-form-progress-step {
        transition: none;
    }
}
