/**
 * ASD Gestionale Public Styles
 * Dark Theme - Primary: #3DEF3D
 */

/* ==========================================================================
   Page-level Dark Background
   ========================================================================== */
.asd-iscrizione-form-wrapper,
.asd-privacy-form-wrapper,
.asd-pagamento-wrapper,
.asd-attesa-wrapper,
.asd-rinnovo-form-wrapper,
.asd-dashboard-socio,
.asd-attivita-wrapper,
.asd-eventi-wrapper,
.asd-pacchetti-wrapper,
.asd-allenamenti-wrapper,
.asd-documenti-wrapper,
.asd-certificato-wrapper {
    background-color: #000000;
    color: #cccccc;
    padding: 30px;
    border-radius: 8px;
    min-height: 50vh;
}

/* Workflow Steps */
.asd-workflow-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.asd-workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
}

.asd-workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #333;
    z-index: 0;
}

.asd-workflow-step.complete::after {
    background: #3DEF3D;
}

.asd-workflow-step .step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #333;
    color: #888;
    font-weight: bold;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
}

.asd-workflow-step.complete .step-number {
    background: #3DEF3D;
    color: #000;
}

.asd-workflow-step.current .step-number {
    background: #3DEF3D;
    color: #000;
}

.asd-workflow-step .step-title {
    font-weight: 600;
    font-size: 14px;
    color: #ccc;
}

.asd-workflow-step.current .step-title {
    color: #3DEF3D;
}

/* Forms */
.asd-form {
    max-width: 600px;
    margin: 0 auto;
}

.asd-form-group {
    margin-bottom: 20px;
}

.asd-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.asd-form-group input[type="text"],
.asd-form-group input[type="email"],
.asd-form-group input[type="tel"],
.asd-form-group input[type="date"],
.asd-form-group input[type="file"],
.asd-form-group select,
.asd-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    background: #111111;
    color: #ffffff;
}

.asd-form-group input:focus,
.asd-form-group select:focus,
.asd-form-group textarea:focus {
    border-color: #3DEF3D;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 239, 61, 0.25);
}

.asd-form-row {
    display: flex;
    gap: 20px;
}

.asd-form-row .asd-form-group {
    flex: 1;
}

.asd-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.asd-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.asd-required {
    color: #ff4444;
}

/* Buttons */
.asd-button {
    display: inline-block;
    padding: 12px 24px;
    background: #3DEF3D;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.asd-button:hover {
    background: #2BC72B;
    color: #000;
}

.asd-button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.asd-button-upload {
    background: #3DEF3D;
    color: #000;
    font-weight: 700;
    font-size: 17px;
    padding: 14px 32px;
}

.asd-button-upload:hover {
    background: #2BC72B;
    color: #000;
}

.asd-button-secondary {
    background: #333;
    color: #ccc;
}

.asd-button-secondary:hover {
    background: #444;
    color: #fff;
}

.asd-button-success {
    background: #3DEF3D;
    color: #000;
}

.asd-button-success:hover {
    background: #2BC72B;
    color: #000;
}

/* Taglia wrapper with size chart button */
.asd-taglia-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asd-taglia-wrapper select {
    flex: 1;
}

.asd-button-taglie {
    padding: 8px 14px;
    font-size: 13px;
    background: #00bcd4;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}

.asd-button-taglie:hover {
    background: #0097a7;
    color: #000;
}

/* Cards */
.asd-card {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #222;
}

.asd-card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.asd-card-title {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

/* Tables */
.asd-table {
    width: 100%;
    border-collapse: collapse;
}

.asd-table th,
.asd-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

.asd-table th {
    background: #1a1a1a;
    font-weight: 600;
    color: #cccccc;
}

.asd-table tr:hover {
    background: #1a1a1a;
}

/* Badges */
.asd-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.asd-badge-success {
    background: #0a2e0a;
    color: #3DEF3D;
}

.asd-badge-warning {
    background: #2e2600;
    color: #ffc107;
}

.asd-badge-danger {
    background: #2e0a0a;
    color: #ff4444;
}

.asd-badge-info {
    background: #0a2e2e;
    color: #00bcd4;
}

/* Alerts */
.asd-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.asd-alert-success {
    background: #0a2e0a;
    color: #3DEF3D;
    border: 1px solid #1a4a1a;
}

.asd-alert-warning {
    background: #2e2600;
    color: #ffc107;
    border: 1px solid #4a3d00;
}

.asd-alert-danger {
    background: #2e0a0a;
    color: #ff4444;
    border: 1px solid #4a1a1a;
}

.asd-alert-info {
    background: #0a2e2e;
    color: #00bcd4;
    border: 1px solid #1a4a4a;
}

/* Activities List */
.asd-attivita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.asd-attivita-card {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid #222;
}

.asd-attivita-header {
    background: #3DEF3D;
    color: #000;
    padding: 15px 20px;
}

.asd-attivita-title {
    margin: 0;
    font-size: 18px;
}

.asd-attivita-type {
    font-size: 12px;
    opacity: 0.7;
}

.asd-attivita-body {
    padding: 20px;
}

.asd-attivita-info {
    margin-bottom: 15px;
    color: #cccccc;
}

.asd-attivita-info span {
    display: block;
    margin-bottom: 5px;
}

.asd-attivita-price {
    font-size: 24px;
    font-weight: bold;
    color: #3DEF3D;
}

/* Pacchetti */
.asd-pacchetti-list {
    display: grid;
    gap: 15px;
}

.asd-pacchetto-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111111;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
}

.asd-pacchetto-info h4 {
    margin: 0 0 5px;
    color: #ffffff;
}

.asd-pacchetto-lessons {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.asd-pacchetto-lessons small {
    font-size: 14px;
    color: #888;
}

/* Payment Options */
.asd-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.asd-payment-option {
    background: #111111;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.asd-payment-option:hover {
    border-color: #3DEF3D;
}

.asd-payment-option.selected {
    border-color: #3DEF3D;
    background: #0a2e0a;
}

.asd-payment-option-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.asd-payment-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #ffffff;
}

.asd-payment-method-label {
    font-weight: 600;
    font-size: 15px;
}

.asd-payment-method-description {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.asd-payment-summary {
    margin-bottom: 25px;
}

.asd-payment-table {
    width: 100%;
    border-collapse: collapse;
}

.asd-payment-table th,
.asd-payment-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    text-align: left;
    color: #ffffff;
}

.asd-payment-table th {
    background: #1a1a1a;
    font-weight: 600;
    width: 35%;
    color: #cccccc;
}

.asd-method-details {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #cccccc;
}

.asd-method-details h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffffff;
}

.asd-payment-content .asd-form-actions {
    margin-top: 20px;
}

.asd-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(61, 239, 61, 0.3);
    border-radius: 50%;
    border-top-color: #3DEF3D;
    animation: asd-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes asd-spin {
    to { transform: rotate(360deg); }
}

/* Documents List */
.asd-documents-list {
    display: grid;
    gap: 10px;
}

.asd-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111111;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
}

.asd-document-item:hover {
    background: #1a1a1a;
}

.asd-document-icon {
    width: 40px;
    height: 40px;
    background: #ff4444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 15px;
}

.asd-document-info {
    flex: 1;
}

.asd-document-name {
    font-weight: 600;
    color: #ffffff;
}

.asd-document-date {
    font-size: 12px;
    color: #888;
}

/* Certificate Upload */
.asd-upload-area {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #111111;
}

.asd-upload-area:hover {
    border-color: #3DEF3D;
    background: #0d0d0d;
}

.asd-upload-area.dragover {
    border-color: #3DEF3D;
    background: #0a2e0a;
}

.asd-upload-icon {
    font-size: 48px;
    color: #444;
    margin-bottom: 15px;
}

/* Loading */
.asd-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #3DEF3D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Socio Sections */
.asd-dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.asd-dashboard-section {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
}

.asd-dashboard-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: #3DEF3D;
}

.asd-section-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.asd-section-icon svg {
    width: 32px;
    height: 32px;
}

.asd-section-tesseramento .asd-section-icon {
    background-color: rgba(61, 239, 61, 0.1);
    color: #3DEF3D;
}

.asd-section-attivita .asd-section-icon {
    background-color: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
}

.asd-section-documenti .asd-section-icon {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.asd-section-certificato .asd-section-icon {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.asd-dashboard-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #ffffff;
}

.asd-dashboard-section p {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Form Sections & Fields */
.asd-form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.asd-form-section:last-of-type {
    border-bottom: none;
}

.asd-form-section h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #cccccc;
}

.asd-form-field {
    margin-bottom: 15px;
}

.asd-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffffff;
}

.asd-form-field .required {
    color: #ff4444;
}

.asd-form-field input[type="text"],
.asd-form-field input[type="email"],
.asd-form-field input[type="tel"],
.asd-form-field input[type="date"],
.asd-form-field input[type="number"],
.asd-form-field select,
.asd-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #111111;
    color: #ffffff;
}

.asd-form-field input:focus,
.asd-form-field select:focus,
.asd-form-field textarea:focus {
    border-color: #3DEF3D;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 239, 61, 0.2);
}

.asd-form-field input[readonly] {
    background-color: #1a1a1a;
    color: #888;
    cursor: not-allowed;
}

.asd-form-field input.error,
.asd-form-field select.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.15);
}

.asd-form-field input.valid {
    border-color: #3DEF3D;
}

.asd-field-half {
    flex: 1;
    min-width: 0;
}

.asd-field-quarter {
    flex: 0 0 25%;
    min-width: 0;
}

.asd-field-full {
    flex: 0 0 100%;
}

/* Field Hints & CF Feedback */
.asd-field-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    min-height: 16px;
}

.asd-cf-valid {
    color: #3DEF3D;
    font-weight: 600;
}

.asd-cf-invalid {
    color: #ff4444;
    font-weight: 600;
}

/* Notices */
.asd-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.asd-notice-info {
    background: #0a2e2e;
    color: #00bcd4;
    border: 1px solid #1a4a4a;
}

.asd-notice-warning {
    background: #2e2600;
    color: #ffc107;
    border: 1px solid #4a3d00;
}

.asd-notice-success {
    background: #0a2e0a;
    color: #3DEF3D;
    border: 1px solid #1a4a1a;
}

.asd-notice p {
    margin: 0;
}

/* Tutor Section */
.asd-section-tutore {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.asd-section-tutore h3 {
    color: #ffc107;
}

/* Form Actions */
.asd-form-actions {
    margin-top: 20px;
    padding-top: 15px;
}

.asd-form-messages {
    margin-top: 15px;
}

/* Signature Pad */
.asd-signature-pad {
    margin-top: 8px;
    border: 2px solid #444;
    border-radius: 6px;
    background: #111111;
    padding: 0;
    position: relative;
    transition: border-color 0.2s;
}

.asd-signature-pad:hover {
    border-color: #666;
}

.asd-signature-pad.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.15);
}

.asd-signature-canvas {
    display: block;
    width: 100%;
    height: 150px;
    cursor: crosshair;
    touch-action: none;
    border-radius: 4px;
}

.asd-signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    border-radius: 0 0 4px 4px;
}

.asd-signature-hint {
    font-size: 12px;
    color: #888;
}

.asd-signature-clear {
    background: none;
    border: 1px solid #444;
    color: #aaa;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.asd-signature-clear:hover {
    background: #222;
    border-color: #666;
    color: #fff;
}

.asd-form-field .asd-signature-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffffff;
}

.asd-form-field .asd-signature-label .required {
    color: #ff4444;
}

/* Access Denied - Activities Requirements */
.asd-access-denied {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #222;
}

.asd-access-denied-icon {
    margin-bottom: 15px;
}

.asd-access-denied-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ff4444;
}

.asd-access-denied h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #ffffff;
}

.asd-access-denied > p {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

.asd-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.asd-requirements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #4a1a1a;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #2e0a0a;
    flex-wrap: wrap;
    color: #ffffff;
}

.asd-requirement-status {
    color: #ff4444;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.asd-requirements-list li .asd-button-small {
    padding: 6px 14px;
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

/* Login Required */
.asd-login-required {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
    .asd-workflow-steps {
        flex-direction: column;
    }
    
    .asd-workflow-step:not(:last-child)::after {
        display: none;
    }
    
    .asd-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .asd-attivita-grid {
        grid-template-columns: 1fr;
    }

    .asd-dashboard-sections {
        grid-template-columns: 1fr;
    }

    .asd-requirements-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .asd-requirements-list li .asd-button-small {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.asd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.asd-modal-content {
    position: relative;
    z-index: 1;
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

.asd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.asd-modal-header h2,
.asd-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.asd-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.asd-modal-close:hover {
    color: #ffffff;
}

.asd-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: #cccccc;
}

.asd-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Modal detail rows */
.asd-modal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

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

.asd-modal-detail-row .asd-label {
    color: #888;
}

.asd-modal-detail-row .asd-value {
    font-weight: 600;
    color: #ffffff;
}

/* Modal sections */
.asd-modal-pacchetto-details,
.asd-modal-prezzo-summary {
    margin-bottom: 20px;
}

.asd-modal-sconto-section {
    margin-bottom: 20px;
}

.asd-modal-sconto-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.asd-modal-sconto-row .asd-input {
    flex: 1;
}

.asd-modal-prezzo-finale-row {
    background: #1a1a1a;
    padding: 10px !important;
    border-radius: 4px;
    margin-top: 8px;
}

/* Modal payment method section */
.asd-modal-payment-method {
    margin-top: 20px;
}

.asd-modal-payment-method h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #ffffff;
}

/* Modal responsive */
@media (max-width: 600px) {
    .asd-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .asd-modal-footer {
        flex-direction: column;
    }

    .asd-modal-footer .asd-button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Wizard / Step Flow
   ========================================================================== */

/* Step indicator */
.asd-wizard-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    padding: 20px 0;
}

.asd-wizard-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.asd-wizard-step-dot .asd-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.asd-wizard-step-dot.asd-active .asd-dot {
    background: #3DEF3D;
    color: #000;
}

.asd-wizard-step-dot.asd-completed .asd-dot {
    background: #2BC72B;
    color: #000;
}

.asd-wizard-step-dot .asd-dot-label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.asd-wizard-step-dot.asd-active .asd-dot-label {
    color: #3DEF3D;
    font-weight: 600;
}

.asd-wizard-step-dot.asd-completed .asd-dot-label {
    color: #2BC72B;
}

.asd-wizard-step-line {
    flex: 1;
    height: 2px;
    background: #333;
    margin: 0 10px;
    margin-bottom: 22px;
    max-width: 120px;
}

/* Wizard steps */
.asd-wizard-step h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #ffffff;
}

/* Wizard navigation */
.asd-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Wizard sections */
.asd-wizard-section {
    margin-bottom: 24px;
}

.asd-wizard-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #cccccc;
}

/* Wizard messages */
.asd-wizard-messages {
    margin-bottom: 16px;
}

/* Selected event/package summary */
.asd-selected-event-summary {
    background: #0a2e0a;
    border: 1px solid #3DEF3D;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.asd-selected-event-summary h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #3DEF3D;
}

.asd-selected-event-summary p {
    margin: 0;
    color: #aaaaaa;
    font-size: 14px;
}

/* ==========================================================================
   Selectable Cards Grid
   ========================================================================== */
.asd-selectable-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.asd-selectable-card {
    position: relative;
    background: #111111;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.asd-selectable-card:hover:not(.asd-card-disabled) {
    border-color: #3DEF3D;
    box-shadow: 0 4px 12px rgba(61, 239, 61, 0.1);
    transform: translateY(-2px);
}

.asd-selectable-card.asd-selected {
    border-color: #3DEF3D;
    background: #0a2e0a;
    box-shadow: 0 4px 16px rgba(61, 239, 61, 0.15);
}

.asd-selectable-card.asd-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Check mark */
.asd-card-check-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid #444;
    border-radius: 50%;
    transition: all 0.2s;
}

.asd-selectable-card.asd-selected .asd-card-check-mark {
    background: #3DEF3D;
    border-color: #3DEF3D;
}

.asd-selectable-card.asd-selected .asd-card-check-mark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Card content */
.asd-card-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #ffffff;
    padding-right: 30px;
}

.asd-card-description {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.asd-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #aaaaaa;
}

.asd-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asd-card-meta-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.asd-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #3DEF3D;
    margin-top: 8px;
}

.asd-card-price small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.asd-card-spots {
    font-size: 12px;
    color: #888;
}

.asd-card-lessons {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.asd-card-lessons-value {
    font-size: 28px;
    font-weight: 700;
    color: #3DEF3D;
    line-height: 1;
}

/* Card badges */
.asd-card-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.asd-card-badge-info {
    background: #0a2e2e;
    color: #00bcd4;
}

.asd-card-badge-danger {
    background: #2e0a0a;
    color: #ff4444;
}

.asd-card-badge-top {
    margin-bottom: 10px;
}

/* Small variant for payment method cards */
.asd-selectable-card-sm {
    padding: 16px;
}

.asd-selectable-card-sm .asd-card-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.asd-selectable-card-sm .asd-card-description {
    font-size: 12px;
    margin-bottom: 0;
}

/* Payment method grid */
.asd-payment-method-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Price summary box */
.asd-price-summary-box {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333;
}

.asd-riepilogo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #cccccc;
}

.asd-riepilogo-totale {
    border-top: 2px solid #444;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    color: #ffffff;
}

/* Discount code form */
.asd-codice-sconto-form {
    display: flex;
    gap: 10px;
}

.asd-codice-sconto-form .asd-input {
    flex: 1;
}

.asd-sconto-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
}

.asd-sconto-success {
    color: #3DEF3D;
    background: #0a2e0a;
}

.asd-sconto-error {
    color: #ff4444;
    background: #2e0a0a;
}

/* ==========================================================================
   Evento Calendar
   ========================================================================== */
.asd-evento-calendario-wrap {
    margin-bottom: 20px;
}

.asd-evento-calendario-wrap h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #cccccc;
}

.asd-calendario-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.asd-calendario-table th {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    border-bottom: 2px solid #333;
}

.asd-cal-empty {
    padding: 4px;
}

.asd-cal-day {
    padding: 4px;
    text-align: center;
}

.asd-cal-day-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 4px;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #111111;
}

.asd-cal-day-label:hover {
    border-color: #3DEF3D;
    background: #0a2e0a;
}

.asd-cal-day-checkbox {
    display: none;
}

.asd-cal-day-checkbox:checked + .asd-cal-day-num {
    color: #000;
}

.asd-cal-day-label:has(.asd-cal-day-checkbox:checked) {
    background: #3DEF3D;
    border-color: #3DEF3D;
    color: #000;
}

.asd-cal-day-num {
    font-size: 15px;
    font-weight: 600;
    color: #cccccc;
}

/* Disabled days (past / today) */
.asd-cal-day-disabled .asd-cal-day-label {
    opacity: 0.35;
    cursor: not-allowed;
    background: #0d0d0d;
    border-color: #222;
}

.asd-cal-day-disabled .asd-cal-day-label:hover {
    border-color: #222;
    background: #0d0d0d;
}

.asd-cal-day-disabled .asd-cal-day-num {
    color: #555;
}

/* Selected days count summary */
.asd-evento-giorni-selezionati {
    margin-top: 16px;
    padding: 12px 16px;
    background: #1a1a1a;
    border-radius: 6px;
    font-size: 15px;
    color: #cccccc;
    border: 1px solid #333;
}

/* ==========================================================================
   Button Variants
   ========================================================================== */
.asd-button-primary {
    background: #3DEF3D;
    color: #000;
}

.asd-button-primary:hover {
    background: #2BC72B;
    color: #000;
}

.asd-button-outline {
    background: transparent;
    border: 1px solid #3DEF3D;
    color: #3DEF3D;
}

.asd-button-outline:hover {
    background: #3DEF3D;
    color: #000;
}

.asd-button-danger {
    background: #ff4444;
    color: #fff;
}

.asd-button-danger:hover {
    background: #cc3333;
    color: #fff;
}

.asd-button-small {
    padding: 6px 14px;
    font-size: 13px;
}

/* ==========================================================================
   Badge Variants
   ========================================================================== */
.asd-badge-secondary {
    background: #222;
    color: #aaaaaa;
}

.asd-badge-onetoone {
    background: #0a2e2e;
    color: #00bcd4;
}

.asd-badge-gruppo,
.asd-badge-gruppo_piccolo {
    background: #0a2e0a;
    color: #3DEF3D;
}

.asd-badge-gruppo_grande {
    background: #0a2e0a;
    color: #3DEF3D;
}

/* ==========================================================================
   Credits Summary
   ========================================================================== */
.asd-credits-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.asd-credit-card {
    flex: 1;
    background: #111111;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.asd-credit-card.asd-credit-onetoone {
    border-color: #0a4a4a;
}

.asd-credit-card.asd-credit-gruppo {
    border-color: #0a4a0a;
}

.asd-credit-label {
    display: block;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.asd-credit-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.asd-credit-card.asd-credit-onetoone .asd-credit-value {
    color: #00bcd4;
}

.asd-credit-card.asd-credit-gruppo .asd-credit-value {
    color: #3DEF3D;
}

.asd-credit-unit {
    display: block;
    font-size: 12px;
    color: #ffffff;
    margin-top: 2px;
}

/* ==========================================================================
   No Results / No Credits
   ========================================================================== */
.asd-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.asd-no-results p {
    margin: 0;
}

.asd-no-credits {
    background: #111111;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #222;
}

.asd-no-credits-icon {
    margin-bottom: 15px;
}

.asd-no-credits-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ffc107;
}

.asd-no-credits h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #ffffff;
}

.asd-no-credits p {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Date Bar (Allenamenti Booking)
   ========================================================================== */
.asd-datebar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 6px 0;
    position: relative;
    user-select: none;
}

.asd-datebar-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 60px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, opacity 0.2s;
    padding: 0;
    z-index: 2;
}

.asd-datebar-arrow:hover {
    color: #3DEF3D;
}

.asd-datebar-arrow.asd-datebar-arrow-hidden {
    opacity: 0.2;
    pointer-events: none;
}

.asd-datebar-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.asd-datebar-track {
    display: flex;
    will-change: transform;
}

.asd-datebar-day {
    flex-shrink: 0;
    min-width: calc(100% / 7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    background: none;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.asd-datebar-day:hover {
    background: #1a1a1a;
    border-color: #444;
}

.asd-datebar-day.asd-datebar-day-active {
    background: #3DEF3D;
    border-color: #3DEF3D;
}

.asd-datebar-day.asd-datebar-day-active .asd-datebar-day-name,
.asd-datebar-day.asd-datebar-day-active .asd-datebar-day-num {
    color: #000;
}

.asd-datebar-day.asd-datebar-day-active .asd-datebar-day-badge {
    background: #000;
    color: #3DEF3D;
}

.asd-datebar-day.asd-datebar-day-past {
    opacity: 0.35;
}

.asd-datebar-day.asd-datebar-day-past:hover {
    opacity: 0.55;
}

.asd-datebar-day.asd-datebar-day-past.asd-datebar-day-active {
    opacity: 0.7;
}

.asd-datebar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asd-datebar-day-num {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.asd-datebar-day-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: #3DEF3D;
    color: #000;
    padding: 1px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* Allenamenti grid (under date bar) */
.asd-allenamenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Allenamenti - Date Groups & Loading
   ========================================================================== */
.asd-allenamenti-date-group {
    margin-bottom: 24px;
}

.asd-date-heading {
    font-size: 16px;
    color: #cccccc;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.asd-allenamenti-loading {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.asd-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #333;
    border-top-color: #3DEF3D;
    border-radius: 50%;
    animation: asd-spin 0.6s linear infinite;
    margin-bottom: 10px;
}

.asd-conferma-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* ==========================================================================
   Form Field Select (standalone)
   ========================================================================== */
.asd-form-field-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #111111;
    color: #ffffff;
}

.asd-form-field-select:focus {
    border-color: #3DEF3D;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 239, 61, 0.2);
}

/* ==========================================================================
   Prenotazioni Section (My Bookings)
   ========================================================================== */
.asd-prenotazioni-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #333;
}

.asd-prenotazioni-section > h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #ffffff;
}

.asd-prenotazioni-list {
    display: grid;
    gap: 12px;
}

.asd-prenotazione-card {
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    transition: box-shadow 0.2s;
}

.asd-prenotazione-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.asd-prenotazione-card.asd-prenotazione-past {
    opacity: 0.7;
}

.asd-prenotazione-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.asd-prenotazione-details {
    display: grid;
    gap: 6px;
}

.asd-prenotazione-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.asd-prenotazione-info-row .asd-label {
    color: #888;
    font-size: 13px;
}

.asd-prenotazione-info-row .asd-value {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.asd-prenotazione-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #222;
    text-align: right;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.asd-text-success {
    color: #3DEF3D;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .asd-credits-summary {
        flex-direction: column;
    }

    .asd-prenotazione-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

@media (max-width: 600px) {
    .asd-selectable-cards-grid {
        grid-template-columns: 1fr;
    }

    .asd-allenamenti-grid {
        grid-template-columns: 1fr;
    }

    .asd-wizard-steps-indicator {
        gap: 0;
    }

    .asd-wizard-step-dot .asd-dot-label {
        font-size: 10px;
    }

    .asd-wizard-step-line {
        max-width: 40px;
    }

    .asd-wizard-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .asd-wizard-nav .asd-button {
        width: 100%;
        text-align: center;
    }

    .asd-payment-method-grid {
        grid-template-columns: 1fr;
    }

    /* Date bar mobile */
    .asd-datebar {
        border-radius: 8px;
    }

    .asd-datebar-arrow {
        width: 30px;
        font-size: 24px;
    }

    .asd-datebar-day-num {
        font-size: 17px;
    }

    .asd-datebar-day-name {
        font-size: 10px;
    }

    .asd-datebar-day {
        padding: 6px 2px;
    }
}
