﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: url("../img/background.png") no-repeat center center fixed;
    background-size: cover;
    color: #E5E5E5;
    overflow-y: auto;
}

.registration-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    padding: 2rem 0;
    overflow-y: auto;
    position: relative;
}

.registration-card {
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(208, 208, 208, 0.25);
    border-radius: 18px;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.4s ease;
    animation: fadeIn 0.6s ease-in-out;
    position: relative;
}

    .registration-card:hover {
        box-shadow: 0 8px 22px rgba(255, 208, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.55);
    }

.registration-header {
    text-align: left;
    margin-bottom: 1.8rem;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFD000;
    margin: 0;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #C0C0C0;
    margin-top: 4px;
}

.dx-form .dx-field-item-label-text {
    color: #FFD000 !important;
}

.dx-texteditor-input {
    color: #FFFFFF !important;
}

.dx-placeholder {
    color: #A8A8A8 !important;
}

.dx-button-success {
    background: linear-gradient(135deg, #FFD000, #BFA100) !important;
    color: #111 !important;
    font-weight: 600;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(255, 208, 0, 0.25);
    transition: all 0.3s ease;
}

    .dx-button-success:hover {
        background: linear-gradient(135deg, #FFE34D, #D4B743) !important;
        box-shadow: 0 5px 15px rgba(255, 208, 0, 0.35);
    }

.corso-dettaglio {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.corso-dettaglio-card {
    background: rgba(35, 35, 35, 0.85);
    border: 1px solid rgba(208, 208, 208, 0.25);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.6s ease-in-out;
}

.corso-titolo {
    color: #FFD000;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
}

.corso-dettaglio-content {
    font-size: 0.95rem;
    color: #E0E0E0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.corso-info-item {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 10px;
}

.corso-label {
    color: #FFD000;
    font-weight: 500;
}

.corso-value {
    color: #FFFFFF;
}

.loading {
    text-align: center;
    color: #C0C0C0;
    font-style: italic;
}

.error-text {
    color: #FF7979;
    font-weight: 500;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    color: #FFD000;
    font-size: 1.3rem;
    font-weight: 600;
    animation: fadeIn 0.4s ease-in-out;
}

.loading-spinner {
    border: 4px solid rgba(255, 208, 0, 0.25);
    border-top: 4px solid #FFD000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.feedback-card {
    background: rgba(20, 20, 20, 0.88);
    border: 1px solid rgba(208, 208, 208, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    transform: translateY(-6%);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-in-out;
}

    .feedback-card:hover {
        transform: translateY(-8%);
        box-shadow: 0 10px 28px rgba(255, 208, 0, 0.25);
    }

.feedback-icon {
    font-size: 3.2rem;
    color: #FFD000;
    margin-bottom: 1rem;
}

.feedback-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: #FFD000;
    margin-bottom: 1rem;
}

.feedback-text {
    font-size: 1.05rem;
    color: #E0E0E0;
    margin-bottom: 1.2rem;
}

.feedback-highlight {
    font-size: 1.1rem;
    color: #FFE34D;
    font-weight: 500;
    margin-bottom: 2rem;
}

.feedback-button {
    background: linear-gradient(135deg, #FFD000, #BFA100);
    color: #111 !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    min-width: 180px;
    box-shadow: 0 3px 10px rgba(255, 208, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .feedback-button:hover {
        background: linear-gradient(135deg, #FFE34D, #D1B754);
        box-shadow: 0 5px 15px rgba(255, 208, 0, 0.35);
        transform: translateY(-2px);
    }

    .feedback-button:active {
        transform: translateY(0);
    }

.wizard-container {
    margin-top: 1.5rem;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 208, 0, 0.20);
    border: 2px solid rgba(255, 208, 0, 0.45);
    color: #FFD000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: all .3s ease;
}

    .wizard-step.active {
        background: #FFD000;
        color: #111;
        transform: scale(1.1);
    }

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wizard-btn {
    width: 48%;
    padding: 10px;
    background: rgba(255, 208, 0, 0.35);
    border: 1px solid rgba(255, 208, 0, 0.6);
    border-radius: 8px;
    color: #FFD000;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

    .wizard-btn:hover:not(:disabled) {
        background: #FFD000;
        color: #111;
    }

    .wizard-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.summary-card {
    background: rgba(30, 30, 30, 0.85);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 208, 0, 0.3);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 208, 0, 0.25);
}

    .summary-item span:first-child {
        color: #FFD000;
        font-weight: 500;
    }

@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .registration-wrapper {
        padding: 1.5rem 0;
    }

    .registration-card {
        width: 100%;
        border-radius: 0;
        padding: 1.6rem;
        box-shadow: none;
        backdrop-filter: none;
        border: none;
    }

    .feedback-card {
        padding: 2rem;
        border-radius: 16px;
        transform: none;
    }

    .form-title, .feedback-title {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .registration-card {
        padding: 1.4rem;
        border-radius: 12px;
    }

    .feedback-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .form-title, .feedback-title {
        font-size: 1.3rem;
    }

    .feedback-text {
        font-size: 0.95rem;
    }
}
