.salsa-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    margin: 40px auto;
}

.salsa-form-container h1 {
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-size: 28px;
}

.question-group {
    margin-bottom: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-bottom 0.5s ease;
}

.question-group.visible {
    opacity: 1;
    max-height: 500px;
    margin-bottom: 20px;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    font-size: 18px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.radio-option:hover,
.checkbox-option:hover {
    background-color: #f5f5f5;
}

.salsa-form-container input[type="radio"],
.salsa-form-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #018bbc;
}

.salsa-form-container label {
    cursor: pointer;
    color: #555;
    font-size: 16px;
    flex: 1;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 0;
    flex-wrap: wrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease;
}

.button-group.visible {
    opacity: 1;
    max-height: 200px;
    margin-top: 40px;
}

.button-group button,
.button-group a {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.button-group .btn-primary {
    background: #ffc046;
    color: white;
}

.button-group .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 192, 70, 0.3);
}

.button-group .btn-secondary {
    background: #ffc046;
    color: white;
}

.button-group .btn-secondary:hover {
    background: #e6a835;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 192, 70, 0.3);
}

.course-results {
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease;
}

.course-results.visible {
    opacity: 1;
    max-height: 2000px;
    margin-top: 40px;
}

.course-results h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #018bbc;
}

.course-card.selected {
    border-color: #018bbc;
    background: rgba(1, 139, 188, 0.05);
}

.course-card h3 {
    color: #018bbc;
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

.course-card .badge {
    display: inline-block;
    background: #018bbc;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-card .badge.recommended {
    background: #10b981;
}

.course-card .course-image {
    width: 100%;
    height: auto;
    aspect-ratio: 758 / 560;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.course-card .course-info {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.course-card .course-info p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #444;
}

.course-card .course-info p:last-child {
    margin-bottom: 0;
}

.course-card .course-technique,
.course-card .course-hours,
.course-card .course-date {
    display: flex;
    align-items: center;
}

.course-card .course-technique strong,
.course-card .course-hours strong,
.course-card .course-date strong {
    min-width: 80px;
    color: #018bbc;
}

.course-card .course-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
    flex-grow: 1;
}

.course-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.course-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    text-align: center;
}

.register-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #ffc046;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 192, 70, 0.4);
}

.registration-section {
    margin-top: 0;
    padding: 0;
    background: white;
    border-radius: 20px;
    border: 2px solid #018bbc;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease, padding 0.5s ease;
}

.registration-section.visible {
    opacity: 1;
    max-height: 2000px;
    margin-top: 40px;
    padding: 40px;
}

.registration-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #018bbc;
}

.form-group.half {
    display: inline-block;
    width: calc(50% - 10px);
}

.form-group.half:first-of-type {
    margin-right: 20px;
}

.agreements-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.agreements-section h3 {
    color: #444;
    font-size: 18px;
    margin-bottom: 15px;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.agreement-item:hover {
    background-color: #f9fafb;
}

.agreement-item input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #018bbc;
}

.agreement-item label {
    flex: 1;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.agreement-item.required label::after {
    content: " *";
    color: #ef4444;
}

.submit-registration {
    width: 100%;
    padding: 15px;
    background: #ffc046;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 25px;
}

.submit-registration:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 192, 70, 0.3);
}

.submit-registration:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-registration.loading {
    background: #e6a835;
    cursor: wait;
    position: relative;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.success-message {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .salsa-form-container {
        padding: 25px;
    }

    .salsa-form-container h1 {
        font-size: 24px;
    }

    .salsa-form-container button {
        min-width: 100%;
    }

    .courses-container {
        grid-template-columns: 1fr;
    }

    .form-group.half {
        width: 100%;
        margin-right: 0 !important;
    }

    .registration-section {
        padding: 25px;
    }
}

.payment-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.payment-button:active {
    transform: translateY(0);
}
