/* 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 {
    padding: 1.5rem 0 3rem;
    background: #ebe6dc;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.tdb-register-container {
    width: 100%;
    max-width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

/* Single unified card */
.tdb-register-shell {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(26, 22, 12, 0.1);
    border: 1px solid rgba(112, 89, 7, 0.12);
}

@media (min-width: 992px) {
    .tdb-register-shell {
        grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 1.05fr);
        min-height: 520px;
    }
}

/* Left info panel */
.tdb-register-info {
    background: linear-gradient(165deg, #f7f2e8 0%, #f0e9db 55%, #e8dfd0 100%);
    border-bottom: 1px solid rgba(112, 89, 7, 0.1);
    position: relative;
}

.tdb-register-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(112, 89, 7, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 992px) {
    .tdb-register-info {
        border-bottom: none;
        border-right: 1px solid rgba(112, 89, 7, 0.12);
    }
}

.tdb-register-info-inner {
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .tdb-register-info-inner {
        padding: 2rem 1.75rem;
        position: sticky;
        top: 0;
    }
}

.tdb-register-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #705907;
}

.tdb-register-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1f2e;
    letter-spacing: -0.02em;
}

.tdb-register-intro {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a5568;
}

.tdb-register-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tdb-register-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(112, 89, 7, 0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #3d4654;
}

.tdb-register-highlights i {
    color: #705907;
    font-size: 0.8rem;
}

.tdb-register-highlights strong {
    color: #1a1f2e;
    font-weight: 700;
}

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

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

.tdb-register-benefits li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.1rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4a5568;
}

.tdb-register-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #705907;
}

.tdb-register-details {
    border: 1px solid rgba(112, 89, 7, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.tdb-register-details summary {
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1a1f2e;
    cursor: pointer;
    list-style: none;
}

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

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

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

.tdb-register-details ol,
.tdb-register-details ul {
    margin: 0;
    padding: 0 0.85rem 0.85rem 1.75rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5c6370;
}

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

/* Right form panel */
.tdb-register-form-pane {
    background: #fff;
    scroll-margin-top: 1rem;
}

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

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

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

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

.tdb-form-progress {
    display: flex;
    gap: 0.5rem;
    margin: 1.15rem 0 1.35rem;
}

.tdb-form-progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #f8f6f2;
    border: 1px solid #ece6da;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tdb-form-progress-step.is-active,
.tdb-form-progress-step.is-done {
    opacity: 1;
    background: #fff;
    border-color: rgba(112, 89, 7, 0.25);
}

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

.tdb-form-progress-step.is-active .tdb-form-progress-num {
    background: #705907;
    color: #fff;
}

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

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

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

.tdb-register-form .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
}

.tdb-register-form .form-group input,
.tdb-register-form .form-group textarea,
.tdb-register-form .form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ddd6c8;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 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: #705907;
    box-shadow: 0 0 0 3px rgba(112, 89, 7, 0.1);
    outline: none;
}

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

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

.tdb-register-schedule-note {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f5f9f5;
    border: 1px solid #d8e8d8;
}

.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: 11px !important;
    box-shadow: 0 4px 14px rgba(112, 89, 7, 0.22);
}

.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;
    }
}
