/**
 * RSVPKit Elementor Widget Styles
 */

/* ==========================================================================
   CRITICAL: Ultra-high specificity rules to override ANY theme/Elementor CSS
   These ensure form fields display correctly regardless of the active theme
   ========================================================================== */
.rsvpkit-form .rsvpkit-field-group .rsvpkit-select,
.rsvpkit-form .rsvpkit-field-group .rsvpkit-input,
.rsvpkit-form select.rsvpkit-select,
.rsvpkit-form input.rsvpkit-input,
.elementor-widget-rsvpkit .rsvpkit-select,
.elementor-widget-rsvpkit .rsvpkit-input,
body .rsvpkit-form-element .rsvpkit-select,
body .rsvpkit-form-element .rsvpkit-input {
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure select dropdown arrow is visible */
body .rsvpkit-form-element .rsvpkit-select,
.rsvpkit-form select.rsvpkit-select {
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
}

/* ==========================================================================
   END Critical Override Rules
   ========================================================================== */

.rsvpkit-widget {
    max-width: 100%;
    margin: 0 auto;
}

.rsvpkit-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    /* Prevent OS dark mode auto-theming of form controls */
    color-scheme: light;
}

.rsvpkit-form-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.rsvpkit-form-description {
    margin: 0 0 25px 0;
    color: #666666;
    text-align: center;
    line-height: 1.6;
}

/* ----------------------------- */
/* Stats Grid Styles             */
/* ----------------------------- */

.rsvpkit-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 30px;
}

/* Utility: Hide elements via toggles */
.rsvpkit-hidden {
    display: none !important;
}

.rsvpkit-stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    justify-items: start;
    gap: 16px;
    padding: 28px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvpkit-stat-card:hover {
    transform: translateY(-4px);
    border-color: #e5e7eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rsvpkit-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent-color, #3b82f6);
    border-radius: 16px 16px 0 0;
}

.rsvpkit-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-accent-color, #3b82f6);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 8px;
    grid-row: 1 / span 2;
    /* Reset theme interference */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Stat icon SVG styling */
.rsvpkit-stat-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    /* Reset theme interference */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
    background: transparent !important;
    display: block !important;
}

/* Align with dashboard: wrap number + label */
.rsvpkit-stat-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvpkit-stat-number {
    font-weight: 700;
    font-size: 2.5rem;
    color: #1e293b;
    line-height: 1;
    margin: 0;
    grid-column: 2;
}

.rsvpkit-stat-label {
    margin-top: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    margin: 0;
    grid-column: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* State accents (can be overridden by Elementor style controls later) */
.rsvpkit-stat-card.total {
    --card-accent-color: #3b82f6;
}

.rsvpkit-stat-card.attending {
    --card-accent-color: #10b981;
}

.rsvpkit-stat-card.not-attending {
    --card-accent-color: #ef4444;
}

.rsvpkit-stat-card.guests {
    --card-accent-color: #8b5cf6;
}

/* Stats Grid Mode 2 — Vertical/Stacked Layout */
.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Ensure hidden cards stay hidden in vertical layout */
.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-card.rsvpkit-hidden {
    display: none !important;
}

.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-icon {
    grid-row: unset !important;
    grid-column: unset !important;
    margin-bottom: 12px !important;
}

.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-content {
    grid-column: unset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-number {
    grid-column: unset !important;
    text-align: center !important;
}

.rsvpkit-stats-grid.layout-vertical .rsvpkit-stat-label {
    grid-column: unset !important;
    text-align: center !important;
}

/* Stats Grid Icons Hidden Mode */
.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-icon {
    display: none !important;
}

.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-card {
    grid-template-columns: 1fr !important;
}

/* Ensure hidden cards stay hidden in icons-hidden mode */
.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-card.rsvpkit-hidden {
    display: none !important;
}

.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-content {
    grid-column: 1 !important;
}

.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-number {
    grid-column: 1 !important;
}

.rsvpkit-stats-grid.icons-hidden .rsvpkit-stat-label {
    grid-column: 1 !important;
}

.rsvpkit-field-group {
    margin-bottom: 20px;
}

.rsvpkit-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.rsvpkit-label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.rsvpkit-input,
.rsvpkit-select,
.rsvpkit-textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
    /* Critical fix for theme/Elementor overrides that cause text clipping */
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.rsvpkit-input:focus,
.rsvpkit-select:focus,
.rsvpkit-textarea:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

/* Readonly field styling */
.rsvpkit-input.readonly,
.rsvpkit-input[readonly] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.rsvpkit-input.readonly:focus,
.rsvpkit-input[readonly]:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

/* Disabled form styling */
.rsvpkit-form-element.form-disabled {
    position: relative !important;
}

.rsvpkit-input[disabled],
.rsvpkit-select[disabled],
.rsvpkit-textarea[disabled],
.rsvpkit-submit-btn[disabled] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.rsvpkit-submit-btn[disabled] {
    background-color: #6c757d !important;
}

.rsvpkit-submit-btn[disabled]:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

.rsvpkit-input::placeholder,
.rsvpkit-textarea::placeholder {
    color: #999999 !important;
}

.rsvpkit-select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    appearance: none !important;
}

.rsvpkit-textarea {
    resize: vertical;
    min-height: 100px;
}

.rsvpkit-submit-btn {
    display: inline-block;
    width: auto;
    padding: 15px 30px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.rsvpkit-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.rsvpkit-submit-btn:active {
    transform: translateY(0);
}

.rsvpkit-submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.rsvpkit-submit-btn .rsvpkit-btn-loading {
    display: none;
}

.rsvpkit-submit-btn.loading .rsvpkit-btn-text {
    display: none;
}

.rsvpkit-submit-btn.loading .rsvpkit-btn-loading {
    display: inline;
}

/* Button Sizes */
.rsvpkit-btn-xs {
    padding: 8px 16px;
    font-size: 12px;
}

.rsvpkit-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.rsvpkit-btn-md {
    padding: 12px 24px;
    font-size: 16px;
}

.rsvpkit-btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.rsvpkit-btn-xl {
    padding: 18px 36px;
    font-size: 20px;
}

/* Messages */
.rsvpkit-messages {
    margin-top: 20px;
}

.rsvpkit-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.rsvpkit-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvpkit-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rsvpkit-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Guest Count Field - Hidden by default */
.rsvpkit-guest-count-field {
    display: none;
}

.rsvpkit-guest-count-field.show {
    display: block;
}

/* Loading Animation */
@keyframes rsvpkit-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rsvpkit-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rsvpkit-spin 1s linear infinite;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rsvpkit-form {
        padding: 20px;
        margin: 0 10px;
    }

    .rsvpkit-form-title {
        font-size: 20px;
    }

    .rsvpkit-input,
    .rsvpkit-select,
    .rsvpkit-textarea {
        padding: 10px 12px;
    }

    .rsvpkit-submit-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .rsvpkit-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .rsvpkit-stat-card {
        padding: 20px 15px;
    }

    .rsvpkit-stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .rsvpkit-form {
        padding: 15px;
        margin: 0 5px;
    }

    .rsvpkit-form-title {
        font-size: 18px;
    }

    .rsvpkit-input,
    .rsvpkit-select,
    .rsvpkit-textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .rsvpkit-submit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Keep 2 columns for compact mobile layout */
    .rsvpkit-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .rsvpkit-stat-card {
        padding: 20px 15px;
    }

    .rsvpkit-stat-number {
        font-size: 24px;
    }
}

/* Dark Mode Support (opt-in via .rsvpkit-enable-dark) */
@media (prefers-color-scheme: dark) {
    .rsvpkit-enable-dark .rsvpkit-form {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }

    .rsvpkit-enable-dark .rsvpkit-form-title,
    .rsvpkit-enable-dark .rsvpkit-label {
        color: #ecf0f1;
    }

    .rsvpkit-enable-dark .rsvpkit-form-description {
        color: #bdc3c7;
    }

    .rsvpkit-enable-dark .rsvpkit-input,
    .rsvpkit-enable-dark .rsvpkit-select,
    .rsvpkit-enable-dark .rsvpkit-textarea {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }

    .rsvpkit-enable-dark .rsvpkit-input::placeholder,
    .rsvpkit-enable-dark .rsvpkit-textarea::placeholder {
        color: #95a5a6;
    }

    .rsvpkit-enable-dark .rsvpkit-input:focus,
    .rsvpkit-enable-dark .rsvpkit-select:focus,
    .rsvpkit-enable-dark .rsvpkit-textarea:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }
}

/* Print Styles */
@media print {
    .rsvpkit-submit-btn {
        display: none;
    }

    .rsvpkit-form {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Cross-Page RSVP Notice */
.rsvpkit-cross-page-notice {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.rsvpkit-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rsvpkit-notice-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.rsvpkit-notice-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #0073aa;
}

.rsvpkit-notice-text strong {
    color: #005a87;
    font-weight: 600;
}

/* ----------------------------- */
/* Response Feed Styles          */
/* ----------------------------- */

.rsvpkit-response-feed {
    margin-top: 16px;
}

.rsvpkit-feed-list {
    display: block;
}

/* Scrollable Feed Container */
.rsvpkit-feed-list.scrollable {
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
    /* Default CSS variables for scrollbar - can be overridden by Elementor inline styles */
    --rsvpkit-scrollbar-thumb: #cbd5e1;
    --rsvpkit-scrollbar-track: #f1f5f9;
}

/* Custom Scrollbar Styling - Webkit browsers */
.rsvpkit-feed-list.scrollable::-webkit-scrollbar {
    width: 6px;
}

.rsvpkit-feed-list.scrollable::-webkit-scrollbar-track {
    background: var(--rsvpkit-scrollbar-track);
    border-radius: 3px;
}

.rsvpkit-feed-list.scrollable::-webkit-scrollbar-thumb {
    background: var(--rsvpkit-scrollbar-thumb);
    border-radius: 3px;
}

.rsvpkit-feed-list.scrollable::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.85);
}

/* Firefox scrollbar */
.rsvpkit-feed-list.scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--rsvpkit-scrollbar-thumb) var(--rsvpkit-scrollbar-track);
}

.rsvpkit-feed-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.rsvpkit-feed-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rsvpkit-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f3f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvpkit-avatar.long-initials {
    font-size: 11px;
    letter-spacing: 0.25px;
}

.rsvpkit-avatar.extra-long-initials {
    font-size: 10px;
    letter-spacing: 0;
}

/* Image avatar styling */
.rsvpkit-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.rsvpkit-feed-col-right {
    display: block;
    min-width: 0;
    /* Enable text truncation in flex/grid child */
    overflow: hidden;
}

.rsvpkit-feed-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    /* Enable text truncation */
    max-width: 100%;
}

.rsvpkit-feed-name {
    font-weight: 600;
    color: #333333;
    /* Handle long names */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.rsvpkit-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.2;
}

.rsvpkit-badge.attending {
    background-color: #2ecc71;
    color: #ffffff;
}

.rsvpkit-badge.not-attending {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.rsvpkit-feed-time {
    color: #7f8c8d;
    font-size: 12px;
}

.rsvpkit-feed-message {
    margin-top: 6px;
    color: #5a5a5a;
    line-height: 1.5;
}

.rsvpkit-feed-controls {
    margin-top: 10px;
}

/* Spacing between pagination buttons */
.rsvpkit-feed-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Keep page numbers on one line with comfortable spacing */
.rsvpkit-feed-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Spacing for page numbers inside pagination info */
.rsvpkit-feed-page-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Use gap for spacing; avoid margins to keep consistency */
/* (margins removed to prevent double-spacing with flex gap) */

.rsvpkit-feed-load-more,
.rsvpkit-feed-pagination button {
    padding: 8px 14px;
    color: #333333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Disabled state: visually indicate and prevent hover interactions */
.rsvpkit-feed-load-more:disabled,
.rsvpkit-feed-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Active page state (default emphasis; can be overridden by Elementor control) */
.rsvpkit-feed-pagination .rsvpkit-page-number.active {
    font-weight: 600;
}

/* License Disabled Form */
.rsvpkit-form-disabled {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.rsvpkit-license-notice {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rsvpkit-avatar {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .rsvpkit-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Dark Mode Support for Response Feed (opt-in via .rsvpkit-enable-dark) */
@media (prefers-color-scheme: dark) {
    .rsvpkit-enable-dark .rsvpkit-feed-item {
        border-bottom-color: #34495e;
    }

    .rsvpkit-enable-dark .rsvpkit-avatar {
        background-color: #3b4a5a;
        color: #ecf0f1;
    }

    .rsvpkit-enable-dark .rsvpkit-feed-name {
        color: #ecf0f1;
    }

    .rsvpkit-enable-dark .rsvpkit-feed-time {
        color: #95a5a6;
    }

    .rsvpkit-enable-dark .rsvpkit-feed-message {
        color: #dfe6e9;
    }
}

/* ----------------------------- */
/* Event Card Selection Styles   */
/* ----------------------------- */

.rsvpkit-event-cards-grid {
    display: grid;
    /* grid-template-columns is controlled by Elementor responsive control */
    gap: 12px;
    margin-top: 10px;
}

.rsvpkit-event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    min-height: 90px;
    user-select: none;
    /* Reset theme styling that causes visual issues */
    outline: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.rsvpkit-event-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.rsvpkit-event-card:focus {
    outline: none !important;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.rsvpkit-event-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    transform: translateY(-2px);
}

.rsvpkit-event-card-icon {
    font-size: 32px;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    /* Sizes controlled by Elementor responsive control */
}

.rsvpkit-event-card-icon svg {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.rsvpkit-event-card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-icon {
    color: #ffffff;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-icon svg {
    fill: #ffffff;
}

.rsvpkit-event-card-icon img,
.rsvpkit-event-card-icon .rsvpkit-custom-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.25s ease;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-icon img,
.rsvpkit-event-card.selected .rsvpkit-event-card-icon .rsvpkit-custom-svg {
    filter: brightness(0) invert(1);
}

.rsvpkit-event-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.rsvpkit-event-card-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-name {
    color: #ffffff;
}

.rsvpkit-event-card-detail {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
    transition: color 0.25s ease;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-line;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-detail {
    color: rgba(255, 255, 255, 0.85);
}

/* Required marker */
.rsvpkit-required {
    color: #dc2626;
    font-weight: 600;
    margin-left: 2px;
}

/* Event selection error */
.rsvpkit-event-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.rsvpkit-event-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reset theme styling that adds unwanted borders/shadows */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.rsvpkit-event-card-check svg {
    stroke: #ffffff;
    fill: none;
    width: 14px;
    height: 14px;
    /* Reset SVG styling from theme */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    background: transparent !important;
}

.rsvpkit-event-card.selected .rsvpkit-event-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Event Card Responsive */
@media (max-width: 768px) {
    .rsvpkit-event-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rsvpkit-event-card {
        padding: 14px 10px;
        min-height: 80px;
    }

    .rsvpkit-event-card-icon {
        font-size: 28px;
    }

    .rsvpkit-event-card-icon svg,
    .rsvpkit-event-card-icon .rsvpkit-custom-svg {
        width: 28px;
        height: 28px;
    }

    .rsvpkit-event-card-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .rsvpkit-event-cards-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }

    .rsvpkit-event-card {
        padding: 12px 8px;
        min-height: 70px;
    }

    .rsvpkit-event-card-icon {
        font-size: 24px;
    }

    .rsvpkit-event-card-icon svg,
    .rsvpkit-event-card-icon .rsvpkit-custom-svg {
        width: 24px;
        height: 24px;
    }

    .rsvpkit-event-card-name {
        font-size: 11px;
    }

    .rsvpkit-event-card-check {
        width: 18px;
        height: 18px;
        top: 6px;
        right: 6px;
    }

    .rsvpkit-event-card-check svg {
        width: 12px;
        height: 12px;
    }
}