/* WarpChat Styles */

:root {
    --primary-color: #e74266;
    --primary-hover: #cf3c5c;
    --secondary-color: #80BA5F;
    --dark-color: #101330;
    --sidebar-bg: #1a1d2e;
    --sidebar-text: #b8bcc8;
    --sidebar-active: #ffffff;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

/* =========================================
   GLOBAL - Navbar
   ========================================= */

.wc-navbar {
    background: var(--dark-color);
    padding: 0.75rem 0;
}

.wc-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 0;
}

.wc-brand-logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 0.55rem;
}

.wc-navbar .nav-link {
    color: #e8eaef;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.wc-navbar .nav-link:hover {
    color: #fff;
}

.wc-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.wc-navbar .navbar-toggler-icon {
    filter: invert(1);
}

@media (max-width: 991.98px) {
    .wc-brand-logo {
        height: 30px;
        max-width: 170px;
    }
}

@media (max-width: 575.98px) {
    .wc-brand {
        font-size: 1.1rem;
    }

    .wc-brand-logo {
        height: 26px;
        max-width: 145px;
        margin-right: 0.45rem;
    }
}

/* Navbar: ensure dark background and visible Logout button */
.wc-navbar {
    background-color: #101330 !important;
}

.wc-btn-logout {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 500;
}

.wc-btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* Hero: secondary button (Open Dashboard) - visible on dark background */
.wc-btn-secondary-hero {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    font-weight: 600;
}

.wc-btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Global Button Styles */
.wc-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.wc-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.wc-btn-primary:focus,
.wc-btn-primary:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 0.2rem rgba(231, 66, 102, 0.35);
}

/* =========================================
   HOME PAGE - Sticky footer + increased spacing
   ========================================= */

/* Sticky footer: content fills space, footer at bottom */
body.page-home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-home #content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.page-home .wc-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.wc-hero {
    background-color: #101330;
    padding: 6rem 0 7rem;
    color: #fff;
    overflow: hidden;
}

.wc-hero-inner {
    min-height: 0;
}

.wc-hero .container {
    max-width: 1140px;
}

.wc-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 2rem;
}

.wc-hero-accent {
    color: var(--primary-color);
}

.wc-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin: 0 0 2.5rem;
    max-width: 520px;
}

.wc-hero-buttons {
    margin-top: 0.5rem;
}

.wc-hero-graphic {
    position: relative;
    padding-left: 3rem;
}

.wc-hero-icon {
    color: rgba(231, 66, 102, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.wc-features {
    background: #f8f9fa;
    padding: 6rem 0 7rem;
}

.wc-features-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin: 0 0 3.5rem;
}

.wc-features-grid {
    margin: 0;
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

.wc-feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.wc-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(231, 66, 102, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wc-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 1rem;
}

.wc-feature-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.wc-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 0;
    font-size: 0.85rem;
}

.wc-footer .container {
    max-width: 1140px;
}

.wc-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.wc-footer a:hover {
    color: var(--primary-hover);
}

/* =========================================
   LOGIN PAGE
   ========================================= */

.wc-login-section {
    background: var(--dark-color);
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.wc-login-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.wc-login-logo {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wc-login-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.wc-login-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

.wc-login-card .form-control {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #dee2e6;
}

.wc-login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 66, 102, 0.15);
}

/* =========================================
   ACCOUNT PAGE
   ========================================= */

.wc-account-page {
    background: #f5f7fa;
    min-height: calc(100vh - 62px);
}

.wc-account-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.wc-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.wc-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.wc-card .card-header h5 {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 600;
}

.wc-card .card-body {
    padding: 1.25rem;
}

.wc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.wc-detail-row:last-child {
    border-bottom: none;
}

.wc-detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.wc-detail-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.wc-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

.wc-card .form-control {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
}

.wc-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 66, 102, 0.15);
}

/* Responsive for home */
@media (max-width: 991.98px) {
    .wc-hero {
        padding: 4rem 0 5rem;
    }
    
    .wc-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .wc-hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .wc-hero-graphic {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .wc-features {
        padding: 4rem 0 5rem;
    }
    
    .wc-features-heading {
        margin-bottom: 2.5rem;
        font-size: 1.5rem;
    }
    
    .wc-feature-card {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .wc-hero {
        padding: 3rem 0 4rem;
    }
    
    .wc-hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .wc-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .wc-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wc-hero-buttons .btn {
        width: 100%;
    }
    
    .wc-features {
        padding: 3rem 0 4rem;
    }
    
    .wc-features-heading {
        margin-bottom: 2rem;
        font-size: 1.35rem;
    }
    
    .wc-feature-card {
        padding: 1.75rem 1.5rem;
    }
    
    .wc-footer {
        padding: 2rem 0;
    }
    
    .wc-login-card {
        padding: 1.75rem;
    }
}

/* =========================================
   DASHBOARD (matches account/home styling)
   ========================================= */

.wc-dashboard-page {
    background: #f5f7fa;
    min-height: calc(100vh - 62px);
}

.wc-dashboard-page .container-fluid {
    max-width: 100%;
}

.wc-dashboard-page .wc-account-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.wc-dashboard-account-bar .form-select {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
}

.wc-dashboard-account-bar .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 66, 102, 0.15);
}

.wc-dashboard-nav .nav-link {
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.wc-dashboard-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(231, 66, 102, 0.08);
}

.wc-dashboard-nav .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.wc-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.wc-dashboard-page .dashboard-section {
    margin-bottom: 2.5rem;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.stat-card-success .stat-icon {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.stat-card-info .stat-icon {
    background: rgba(13, 202, 240, 0.15);
    color: #0dcaf0;
}

.stat-card-warning .stat-icon {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Dashboard uses .wc-card (shared with account page) */

/* Config Cards */
.config-card .config-body {
    max-height: 400px;
    overflow-y: auto;
}

.config-card .accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.config-card .accordion-item:last-child {
    border-bottom: none;
}

.config-card .accordion-button {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    box-shadow: none;
}

.config-card .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: transparent;
}

.config-card .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.config-card .accordion-body {
    padding: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.config-card .table {
    margin: 0;
}

.config-card .table th {
    border-top: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

.config-card .table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Action Cards */
.action-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.action-card:hover {
    border-color: var(--primary-color);
}

.action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.action-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.action-badges .badge {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.action-details p {
    color: #6c757d;
}

/* Chart Container */
#conversationsChart,
#messageDistributionChart {
    min-height: 250px;
}

/* Recent Conversations Table */
.wc-card .table-hover tbody tr:hover {
    background-color: rgba(231, 66, 102, 0.05);
}

.wc-card .table code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Scrollbar Styling */
.config-body::-webkit-scrollbar {
    width: 6px;
}

.config-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.config-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.config-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Dashboard responsive */
@media (max-width: 991.98px) {
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .wc-section-title {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
}

/* Conversation Modal */
#conversationModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

#conversationModal .modal-title {
    margin-bottom: 0.25rem;
}

#conversationModal .modal-body {
    padding: 0;
    background: #f8f9fa;
}

#conversationModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
}

/* Conversation Thread */
.conversation-thread {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.conversation-message-user {
    align-self: flex-end;
    background: #198754;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.conversation-message-agent {
    align-self: flex-start;
    background: #fff;
    color: var(--dark-color);
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.message-role {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversation-message-user .message-role {
    color: rgba(255, 255, 255, 0.85);
}

.conversation-message-agent .message-role {
    color: var(--primary-color);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-content a {
    text-decoration: underline;
    word-break: break-all;
}

.conversation-message-user .message-content {
    color: #fff;
}

.conversation-message-user .message-content a {
    color: #fff;
}

.conversation-message-agent .message-content a {
    color: var(--primary-color);
}

/* Conversations table container */
.conversations-table-container {
    max-height: 500px;
    overflow-y: auto;
}

.conversations-table-container .table {
    margin-bottom: 0;
}

.conversations-table-container .table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.conversations-table-container .table thead th {
    border-top: none;
}

/* View button styling */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Recent chats filter toolbar */
.wc-chats-filter .btn-group .btn.active {
    background-color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #fff;
}

.wc-chats-filter #customRangeForm input.form-control {
    background-color: #fff;
}

.wc-chats-filter .btn.disabled,
.wc-chats-filter button:disabled {
    pointer-events: none;
    opacity: 0.55;
}

/* Flatpickr should sit above Bootstrap cards/headers */
.flatpickr-calendar {
    z-index: 2000;
}

/* Conversations card body needs to be a positioning context for the loading overlay */
.wc-conversations-card-body {
    position: relative;
    min-height: 80px;
}

.wc-conversations-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 5;
    border-radius: inherit;
}

.wc-conversations-card-body.is-loading .wc-conversations-loading {
    display: flex;
}

.wc-conversations-loading-inner {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #495057;
    font-size: 0.9rem;
}

/* =========================================
   SIGN UP / GET STARTED PAGE
   ========================================= */

body.page-get-started,
body.page-thanks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Event page palette (tuned for the demo gradient) */
body.page-get-started,
body.page-thanks {
    --primary-color: #99C24D;
    --primary-hover: #82A93D;
    background: linear-gradient(135deg, #369eff 0%, #45f21c 100%);
    background-attachment: fixed;
}

body.page-get-started #content,
body.page-thanks #content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.page-get-started #content,
body.page-thanks #content {
    position: relative;
}

body.page-get-started .wc-footer,
body.page-thanks .wc-footer {
    flex-shrink: 0;
    margin-top: auto;
}

body.page-get-started .wc-signup-hero,
body.page-thanks .wc-signup-hero {
    padding: 5rem 0 6rem;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section-level centering for the full hero content */
body.page-get-started .wc-signup-hero > .container,
body.page-thanks .wc-signup-hero > .container {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.page-get-started .wc-signup-row,
body.page-thanks .wc-signup-row {
    width: 100%;
    max-width: 1100px;
    margin: 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2rem;
}

body.page-get-started .wc-event-logo,
body.page-thanks .wc-event-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 170px;
    max-width: 34vw;
    height: auto;
    z-index: 3;
}

body.page-get-started .wc-event-top-cta,
body.page-thanks .wc-event-top-cta {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(16, 19, 48, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    backdrop-filter: blur(2px);
}

body.page-get-started .wc-event-top-cta:hover,
body.page-thanks .wc-event-top-cta:hover {
    background: rgba(16, 19, 48, 0.45);
    color: #fff;
}

body.page-get-started .wc-signup-row .wc-hero-title {
    color: var(--dark-color);
}

body.page-get-started .wc-signup-row .wc-hero-subtitle {
    color: #5f6b7a;
}

body.page-get-started .wc-signup-row .wc-signup-points {
    color: #4f5d70;
}

body.page-thanks .wc-signup-row .wc-hero-title {
    color: var(--dark-color);
}

body.page-thanks .wc-signup-row .wc-hero-subtitle {
    color: #5f6b7a;
}

body.page-thanks .wc-thanks-fallback {
    color: #5f6b7a;
}

body.page-thanks .wc-thanks-fallback a {
    color: var(--primary-hover);
}

body.page-thanks .wc-thanks-fallback a:hover {
    color: var(--dark-color);
}

/* Thank-you page demo QR + ID */
body.page-thanks .wc-thanks-qr {
    margin: 1.75rem auto 1.5rem;
    max-width: 360px;
    padding: 1.5rem 1.5rem 1.25rem;
    background: #f7f9fc;
    border: 1px solid #e6e9f1;
    border-radius: var(--border-radius);
}

body.page-thanks .wc-thanks-qr-lead {
    margin: 0 0 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

body.page-thanks .wc-thanks-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.page-thanks .wc-thanks-qr-code img,
body.page-thanks .wc-thanks-qr-image,
body.page-thanks .wc-thanks-qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

body.page-thanks .wc-thanks-qr-id {
    margin: 0 0 0.25rem;
    color: #5f6b7a;
    font-size: 1.15rem;
}

body.page-thanks .wc-thanks-qr-id strong {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.page-thanks .wc-thanks-qr-link {
    margin: 0;
    font-size: 0.9rem;
    word-break: break-all;
}

body.page-thanks .wc-thanks-qr-link a {
    color: var(--primary-hover);
}

body.page-thanks .wc-thanks-qr-link a:hover {
    color: var(--dark-color);
}

.wc-signup-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
}

.wc-signup-points li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.wc-signup-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.wc-signup-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    color: var(--dark-color);
}

body.page-get-started .wc-signup-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.wc-signup-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--dark-color);
}

.wc-signup-card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 1.5rem;
}

.wc-required-star {
    color: var(--primary-color);
    font-weight: 700;
}

/* Keep required indicators red on the get-started event page */
body.page-get-started .wc-required-star,
body.page-get-started .wc-signup-form .Inputfield:not(.InputfieldSubmit) label.InputfieldHeader::after {
    color: #e74266;
}

/* Required indicators on all signup form fields */
.wc-signup-form .Inputfield:not(.InputfieldSubmit) label.InputfieldHeader::after {
    content: " *";
    color: var(--primary-color);
    font-weight: 700;
}

/* Scope FormBuilder markup so it visually matches the site */
.wc-signup-form .InputfieldForm {
    background: transparent;
    border: none;
}

.wc-signup-form .Inputfield {
    margin-bottom: 1.1rem;
}

.wc-signup-form label,
.wc-signup-form .InputfieldHeader {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    display: block;
    margin-bottom: 0.4rem;
}

.wc-signup-form input[type="text"],
.wc-signup-form input[type="email"],
.wc-signup-form input[type="url"],
.wc-signup-form input[type="tel"],
.wc-signup-form textarea {
    width: 100%;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #dee2e6;
    font-size: 0.95rem;
    background: #fff;
    color: var(--dark-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wc-signup-form input[type="text"]:focus,
.wc-signup-form input[type="email"]:focus,
.wc-signup-form input[type="url"]:focus,
.wc-signup-form input[type="tel"]:focus,
.wc-signup-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 66, 102, 0.15);
    outline: none;
}

.wc-signup-form .notes,
.wc-signup-form .description {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.wc-signup-form .InputfieldSubmit input[type="submit"],
.wc-signup-form button[type="submit"],
.wc-signup-form input[type="submit"] {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.wc-signup-form .InputfieldSubmit input[type="submit"]:hover,
.wc-signup-form button[type="submit"]:hover,
.wc-signup-form input[type="submit"]:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.wc-signup-form .ui-state-error,
.wc-signup-form .InputfieldStateError,
.wc-signup-form .input-error {
    background: rgba(231, 66, 102, 0.08);
    border-left: 3px solid var(--primary-color);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-hover);
    margin-top: 0.35rem;
}

.wc-signup-form .InputfieldMarkup,
.wc-signup-form .InputfieldForm > div > h2 {
    color: var(--dark-color);
}

/* Success message that FormBuilder may render in-place if redirect is disabled */
.wc-signup-form .FormBuilderMessage,
.wc-signup-form .InputfieldForm-success {
    background: rgba(128, 186, 95, 0.12);
    border: 1px solid rgba(128, 186, 95, 0.5);
    color: #2f6a14;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

/* =========================================
   THANKS PAGE
   ========================================= */

.wc-thanks-hero {
    padding: 7rem 0 8rem;
    text-align: center;
}

.wc-thanks-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    animation: wc-thanks-pop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes wc-thanks-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.wc-thanks-hero .wc-hero-subtitle {
    max-width: 560px;
}

.wc-thanks-fallback {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.wc-thanks-fallback a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.wc-thanks-fallback a:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .wc-signup-hero {
        padding: 3rem 0 4rem;
    }

    .wc-signup-card {
        margin-top: 2.5rem;
        padding: 1.75rem 1.5rem;
    }

    .wc-thanks-hero {
        padding: 5rem 0 6rem;
    }
}
