:root {
    --xf-bg: #212121;
    --xf-bg-card: #2a2a2a;
    --xf-bg-input: #333333;
    --xf-accent: #dafe5f;
    --xf-text: #ffffff;
    --xf-text-muted: #aaaaaa;
    --xf-border: #3a3a3a;
    --xf-error: #ff5252;
    --xf-success: #4caf50;
    --xf-radius: 12px;
    --xf-radius-sm: 8px;
    --xf-transition: 0.3s ease;
    --xf-font-family: Arial, Helvetica, sans-serif;
}

.xfitclub-registration {
    background: var(--xf-bg);
    border-radius: 20px;
    color: var(--xf-text);
    font-family: var(--xf-font-family);
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.xfitclub-registration *,
.xfitclub-registration *::before,
.xfitclub-registration *::after {
    box-sizing: border-box;
}

.xfitclub-progress {
    margin-bottom: 40px;
}

.xfitclub-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.xfitclub-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.4;
    transition: opacity var(--xf-transition);
}

.xfitclub-progress-step.active,
.xfitclub-progress-step.completed {
    opacity: 1;
}

.xfitclub-progress-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--xf-bg-card);
    border: 2px solid var(--xf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all var(--xf-transition);
}

.xfitclub-progress-step.active .step-number {
    background: var(--xf-accent);
    color: var(--xf-bg);
    border-color: var(--xf-accent);
}

.xfitclub-progress-step.completed .step-number {
    background: var(--xf-accent);
    color: var(--xf-bg);
    border-color: var(--xf-accent);
}

.xfitclub-progress-step .step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.xfitclub-progress-bar {
    height: 4px;
    background: var(--xf-bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.xfitclub-progress-fill {
    height: 100%;
    background: var(--xf-accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.xfitclub-step h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--xf-text);
}

.xfitclub-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px;
    color: var(--xf-text);
}

.xfitclub-loading {
    text-align: center;
    color: var(--xf-text-muted);
    padding: 40px 0;
    font-size: 16px;
}

.xfitclub-loading::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--xf-border);
    border-top-color: var(--xf-accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: xf-spin 0.8s linear infinite;
}

@keyframes xf-spin {
    to { transform: rotate(360deg); }
}

:is(.xfitclub-memberships-grid, .xfitclub-membership-groups-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.xfitclub-membership-selection-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 32px;
    align-items: start;
}

.xfitclub-membership-selection-content .xfitclub-membership-group-description {
    margin-bottom: 0;
}

.xfitclub-membership-selection-content .xfitclub-membership-duration-selection {
    margin-bottom: 0;
    padding-top: 8px;
}

:is(.xfitclub-membership-card, .xfitclub-membership-group-card) {
    background: var(--xf-bg-card);
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: all var(--xf-transition);
    display: flex;
    flex-direction: column;
}

:is(.xfitclub-membership-card, .xfitclub-membership-group-card):hover {
    border-color: var(--xf-accent);
    transform: translateY(-2px);
}

.xfitclub-membership-card.selected {
    border-color: var(--xf-accent);
    box-shadow: 0 0 20px rgba(218, 254, 95, 0.15);
}

:is(.xfitclub-membership-card, .xfitclub-membership-group-card) .card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.xfitclub-membership-card .card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--xf-accent);
    margin-bottom: 4px;
}

.xfitclub-registration :is(
    .xfitclub-membership-group-card,
    .xfitclub-membership-group-card *,
    .xfitclub-choice,
    .xfitclub-choice *
) {
    font-family: var(--xf-font-family) !important;
}

.xfitclub-membership-group-card .card-price {
    color: var(--xf-accent);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.xfitclub-membership-group-card .card-from {
    color: var(--xf-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.xfitclub-membership-card .card-price-discounted {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.xfitclub-membership-card .card-price-original {
    color: var(--xf-text-muted);
    font-size: 17px;
    text-decoration: line-through;
}

.xfitclub-membership-card .card-price-current {
    color: var(--xf-accent);
}

.xfitclub-membership-card .card-action-description {
    color: var(--xf-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.xfitclub-membership-card .card-period {
    font-size: 13px;
    color: var(--xf-text-muted);
    margin-bottom: 16px;
}

.xfitclub-membership-full-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 56px;
    padding: 24px 28px;
}

.xfitclub-membership-full-row-content {
    min-width: 0;
}

.xfitclub-membership-full-row-content .card-name {
    margin-bottom: 8px;
}

.xfitclub-membership-full-row-content .card-action-description {
    margin-bottom: 6px;
}

.xfitclub-membership-full-row-content .xfitclub-description {
    margin: 0;
}

.xfitclub-membership-full-row-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.xfitclub-membership-full-row-price .card-price {
    margin-bottom: 0;
}

.xfitclub-membership-full-row-price .card-period {
    margin-bottom: 0;
}

.xfitclub-membership-full-row .card-btn {
    min-width: 120px;
}

.xfitclub-description {
    margin: 0 0 20px;
    flex-grow: 1;
    color: var(--xf-text-muted);
    font-size: 14px;
}

.xfitclub-description,
.xfitclub-description p,
.xfitclub-description span,
.xfitclub-description strong,
.xfitclub-description em,
.xfitclub-description a,
.xfitclub-description ul,
.xfitclub-description ol,
.xfitclub-description li {
    color: var(--xf-text-muted);
}

.xfitclub-description p,
.xfitclub-description ul,
.xfitclub-description ol {
    margin: 0 0 12px;
}

.xfitclub-description p:last-child,
.xfitclub-description ul:last-child,
.xfitclub-description ol:last-child {
    margin-bottom: 0;
}

.xfitclub-description ul,
.xfitclub-description ol {
    padding: 0;
    list-style: none;
}

.xfitclub-description li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--xf-text-muted);
}

.xfitclub-description li::before {
    content: '\2713';
    color: var(--xf-accent);
    margin-right: 8px;
    font-weight: 700;
}

:is(.xfitclub-membership-card, .xfitclub-membership-group-card) .card-btn {
    background: transparent;
    border: 2px solid var(--xf-accent);
    color: var(--xf-accent);
    padding: 12px;
    border-radius: var(--xf-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--xf-transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

:is(.xfitclub-membership-card, .xfitclub-membership-group-card) .card-btn:hover,
.xfitclub-membership-card.selected .card-btn {
    background: var(--xf-accent);
    color: var(--xf-bg);
}

.xfitclub-selected-membership {
    background: var(--xf-bg-card);
    border: 2px solid var(--xf-accent);
    border-radius: var(--xf-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.xfitclub-selected-membership h3 {
    margin: 0 0 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--xf-accent);
}

.xfitclub-selected-membership-detail p {
    margin: 4px 0;
    font-size: 15px;
}

.xfitclub-cost-overview {
    background: var(--xf-bg-card);
    border-radius: var(--xf-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.xfitclub-costs-detail .cost-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--xf-border);
    font-size: 15px;
}

.xfitclub-costs-detail .cost-line:last-child {
    border-bottom: none;
}

.xfitclub-costs-detail .cost-line .cost-value {
    font-weight: 600;
    color: var(--xf-accent);
}

.xfitclub-addons-section {
    margin-bottom: 24px;
}

.xfitclub-addons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.xfitclub-addon-item {
    background: var(--xf-bg-card);
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: all var(--xf-transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.xfitclub-addon-item:hover {
    border-color: var(--xf-accent);
}

.xfitclub-addon-item.selected {
    border-color: var(--xf-accent);
    background: rgba(218, 254, 95, 0.05);
}

.xfitclub-addon-item .addon-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--xf-border);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--xf-transition);
}

.xfitclub-addon-item.selected .addon-checkbox {
    background: var(--xf-accent);
    border-color: var(--xf-accent);
    color: var(--xf-bg);
    font-weight: 700;
}

.xfitclub-addon-item .addon-info {
    flex-grow: 1;
}

.xfitclub-addon-item .addon-name {
    font-weight: 600;
    font-size: 15px;
}

.xfitclub-addon-item .addon-price {
    color: var(--xf-accent);
    font-weight: 600;
    font-size: 14px;
    margin-top: 2px;
}

.xfitclub-subtotal {
    background: var(--xf-bg-card);
    border-radius: var(--xf-radius-sm);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.xfitclub-subtotal-amount {
    color: var(--xf-accent);
    font-size: 22px;
}

.xfitclub-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.xfitclub-form-group {
    flex: 1;
    margin-bottom: 16px;
}

.xfitclub-form-group-small {
    flex: 0 0 140px;
    margin-bottom: 16px;
}

.xfitclub-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--xf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xfitclub-form-group input:not([type="checkbox"]),
.xfitclub-form-group select,
.xfitclub-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: var(--xf-bg-input);
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius-sm);
    color: var(--xf-text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--xf-transition);
    appearance: none;
    -webkit-appearance: none;
}

.xfitclub-form-group input:not([type="checkbox"]),
.xfitclub-form-group select {
    height: 48px;
}

.xfitclub-form-group textarea {
    min-height: 110px;
    resize: vertical;
    appearance: auto;
    -webkit-appearance: auto;
}

.xfitclub-form-group input:focus,
.xfitclub-form-group select:focus,
.xfitclub-form-group textarea:focus {
    outline: none;
    border-color: var(--xf-accent);
}

.xfitclub-form-group input.parsley-error,
.xfitclub-form-group select.parsley-error,
.xfitclub-form-group textarea.parsley-error {
    border-color: var(--xf-error);
}

.xfitclub-checkbox span {
    top: -4px;
    position: relative;
    left: 4px;
}

.xfitclub-form-group select {
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.xfitclub-fieldset {
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius-sm);
    margin: 0;
    padding: 16px;
}

.xfitclub-fieldset legend {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xfitclub-field-note {
    margin: 0 0 12px;
    color: var(--xf-text-muted);
    font-size: 14px;
    margin-block-end: unset !important;
}

.xfitclub-choice {
    display: block;
    cursor: pointer;
    font-size: 14px;
    color: var(--xf-text);
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius-sm);
    background: var(--xf-bg-card);
    transition: border-color var(--xf-transition), background var(--xf-transition);
}

.xfitclub-choice:hover {
    border-color: var(--xf-accent);
}

.xfitclub-choice:last-child {
    margin-bottom: 0;
}

.xfitclub-choice.is-selected {
    border-color: var(--xf-accent);
    background: rgba(218, 254, 95, 0.08);
}

.xfitclub-choice input[type="checkbox"],
.xfitclub-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.xfitclub-choice span {
    display: block;
    color: inherit;
    line-height: 1.5;
    position: static;
    left: auto;
    top: auto;
}

.xfitclub-choice .xfitclub-duration-title {
    color: var(--xf-text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.xfitclub-choice .xfitclub-duration-details {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 5px;
}

.xfitclub-choice .xfitclub-duration-label {
    color: var(--xf-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.xfitclub-choice .xfitclub-duration-price {
    color: var(--xf-accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.parsley-errors-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.parsley-errors-list li {
    color: var(--xf-error);
    font-size: 13px;
    line-height: 1.5;
}

.xfitclub-checkbox-group {
    margin-bottom: 12px;
}

.xfitclub-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--xf-text-muted);
    margin-bottom: 10px;
}

.xfitclub-checkbox:last-child {
    margin-bottom: 0;
}

.xfitclub-checkbox input[type="checkbox"],
.xfitclub-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--xf-accent);
    flex-shrink: 0;
}

.xfitclub-checkbox a {
    color: var(--xf-accent);
    text-decoration: none;
}

.xfitclub-checkbox a:hover {
    text-decoration: underline;
}

.xfitclub-overview {
    margin-bottom: 24px;
}

.xfitclub-overview-section {
    background: var(--xf-bg-card);
    border-radius: var(--xf-radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.xfitclub-overview-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--xf-accent);
}

.xfitclub-overview-section p {
    margin: 4px 0;
    font-size: 15px;
    margin-block-end: unset !important;
}

.xfitclub-overview-section .overview-label {
    color: var(--xf-text-muted);
    font-size: 13px;
}

.xfitclub-signature-section {
    margin-top: 8px;
    margin-bottom: 24px;
}

.xfitclub-signature-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--xf-accent);
    margin: 0 0 8px;
}

.xfitclub-signature-desc {
    color: var(--xf-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.xfitclub-signature-wrapper {
    background: var(--xf-bg-card);
    border: 2px solid var(--xf-border);
    border-radius: var(--xf-radius);
    overflow: hidden;
    margin-bottom: 12px;
    touch-action: none;
}

.xfitclub-signature-wrapper canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.xfitclub-btn-secondary {
    background: transparent;
    color: var(--xf-text-muted);
    border-color: var(--xf-border);
    padding: 8px 20px;
    font-size: 13px;
}

.xfitclub-btn-secondary:hover {
    color: var(--xf-text);
    border-color: var(--xf-text);
}

.xfitclub-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.xfitclub-confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--xf-accent);
    color: var(--xf-bg);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.xfitclub-confirmation p {
    font-size: 18px;
    margin-bottom: 16px;
}

.xfitclub-confirmation-note {
    color: var(--xf-text-muted);
    font-size: 15px;
}

.xfitclub-step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.xfitclub-btn {
    padding: 14px 32px;
    border-radius: var(--xf-radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--xf-transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xfitclub-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.xfitclub-btn-next {
    background: var(--xf-accent);
    color: var(--xf-bg);
    border-color: var(--xf-accent);
    margin-left: auto;
}

.xfitclub-btn-next:hover:not(:disabled) {
    background: #c8ec4d;
    border-color: #c8ec4d;
}

.xfitclub-btn-back {
    background: transparent;
    color: var(--xf-text) !important;
    border-color: var(--xf-border);
}

.xfitclub-btn-back:hover {
    border-color: var(--xf-text);
}

.xfitclub-error {
    background: rgba(255, 82, 82, 0.1);
    border: 2px solid var(--xf-error);
    border-radius: var(--xf-radius-sm);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.xfitclub-error-message {
    color: var(--xf-error);
    font-size: 16px;
    margin-bottom: 16px;
}

#xfitclub-caregiver-section {
    border-left: 3px solid var(--xf-accent);
    padding-left: 20px;
    margin: 16px 0;
}

#xfitclub-caregiver-section h3 {
    color: var(--xf-accent);
    font-size: 16px;
    margin: 0 0 8px;
}

.xfitclub-caregiver-notice {
    color: var(--xf-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .xfitclub-registration {
        padding: 20px 16px;
    }

    .xfitclub-progress-step .step-label {
        font-size: 9px;
    }

    .xfitclub-progress-step .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .xfitclub-step h2 {
        font-size: 22px;
    }

    .xfitclub-memberships-grid {
        grid-template-columns: 1fr;
    }

    .xfitclub-membership-selection-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .xfitclub-membership-selection-content .xfitclub-membership-duration-selection {
        padding-top: 0;
    }

    .xfitclub-membership-full-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
        padding: 20px;
    }

    .xfitclub-membership-full-row-content,
    .xfitclub-membership-full-row-price,
    .xfitclub-membership-full-row .card-btn {
        width: 100%;
    }

    .xfitclub-membership-full-row .card-btn {
        width: 100%;
        margin-top: 8px;
    }

    .xfitclub-addons-list {
        grid-template-columns: 1fr;
    }

    .xfitclub-form-row {
        flex-direction: column;
        gap: 0;
    }

    .xfitclub-form-group-small {
        flex: 1;
    }

    .xfitclub-form-group {
        margin-bottom: 12px;
    }

    .xfitclub-step-buttons {
        flex-direction: column-reverse;
    }

    .xfitclub-btn {
        width: 100%;
        text-align: center;
    }

    .xfitclub-btn-next {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .xfitclub-progress-step .step-label {
        display: none;
    }
}
