.registration-form-container {
    background: #F0F2FD;
    border-radius: 40px;
    padding: 48px;
    border: 2px solid #CCD2F9;
}

/* Form title */
.form-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #3C3679;
    margin: 0 0 36px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #CCD2F9;
}

/* Toggle switch */
.form-toggle-wrapper {
    margin-bottom: 24px;
}

.form-toggle-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-toggle-buttons {
    display: flex;
    gap: 12px;
    border: 2px solid #726DE3;
    border-radius: 999px;
    padding: 8px;
    max-width: 100%;
}

button.form-toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

button.form-toggle-btn.active {
    background: #ADB4F4;
}

button.form-toggle-btn:hover:not(.active) {
    background: #E3E7FC;
}

/* Form rows */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row-3 {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

/* Form groups */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.small {
    flex: 0 0 147px;
}

.form-group label {
    font-weight: 600;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #726DE3;
    color: #726DE3;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    font-family: inherit;
    background: transparent;
    transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #726DE3;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #726DE3;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8' fill='none'%3E%3Cpath d='M0.996733 -6.55003e-07C1.26186 0.000232759 1.51604 0.105743 1.7034 0.293333L6.81807 5.408C6.97284 5.56281 7.15659 5.68562 7.35883 5.7694C7.56106 5.85319 7.77783 5.89631 7.99673 5.89631C8.21564 5.89631 8.4324 5.85319 8.63464 5.7694C8.83688 5.68562 9.02063 5.56281 9.1754 5.408L14.2867 0.3C14.4753 0.117842 14.7279 0.0170474 14.9901 0.0193259C15.2523 0.0216043 15.5031 0.126773 15.6886 0.312181C15.874 0.49759 15.9791 0.748402 15.9814 1.0106C15.9837 1.2728 15.8829 1.5254 15.7007 1.714L10.5934 6.822C9.90522 7.50882 8.97267 7.89456 8.0004 7.89456C7.02813 7.89456 6.09557 7.50882 5.4074 6.822L0.292733 1.70733C0.152988 1.56768 0.0577411 1.38976 0.0190124 1.19603C-0.0197182 1.0023 -0.000194585 0.801438 0.0751171 0.618792C0.15043 0.436145 0.278156 0.2799 0.442179 0.169771C0.606201 0.0596433 0.79917 0.000567535 0.996733 -6.55003e-07Z' fill='%23000000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
    cursor: pointer;
}

.form-textarea {
    border-radius: 24px;
    min-height: 120px;
    resize: vertical;
}

/* Checkboxes */
.form-checkboxes {
    margin-bottom: 20px;
}

.form-checkboxes-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-checkboxes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.form-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #726DE3;
    border-radius: 4px;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox-item input[type="checkbox"]:checked {
    background: #726DE3;
}

.form-checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Single checkbox (like "Chcem doplniť...") */
.form-single-checkbox {
    margin-bottom: 20px;
}

/* Insurance checkboxes separator */
.form-checkbox-separator {
    width: 2px;
    height: 24px;
    background: #ADB4F4;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Conditional fields */
.form-conditional-fields {
    display: none;
    margin-bottom: 20px;
}

.form-conditional-fields.visible {
    display: flex;
    gap: 16px;
}

/* Fields specific to "Pod vaším pracoviskom" */
.form-fields-meno,
.form-fields-pracovisko {
    display: none;
}

.form-fields-meno.active,
.form-fields-pracovisko.active {
    display: block;
}

/* Footer note */
.form-footer-note {
    font-size: 12px;
    color: #656565;
    margin-top: 32px;
    margin-bottom: 40px;
}

/* Submit button */
button.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

button.form-submit-btn:hover {
    background: #FF8C00;
}

button.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message */
.form-success-message {
    display: none;
}

.form-success-message.visible {
    display: block;
}

.form-success-message h2 {
    font-size: 64px;
    font-weight: 600;
    color: #3C3679;
    margin: 0 0 40px 0;
}

.form-success-message p {
    font-size: 24px;
    line-height: 34px;
    font-weight: 600;
    margin: 0;
}

/* Loading state */
.registration-form-container.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.registration-form-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #726DE3;
    border-radius: 50%;
    animation: registration-form-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes registration-form-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error states */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-error-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

.form-error-message.visible {
    display: block;
}

@media (max-width: 1250px) {
    .form-row-3 {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .form-row-3 .form-group.small {
        flex: 0 0 calc(50% - 8px);
    }
    
    .form-row-3 .form-group:not(.small) {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .registration-form-container {
        padding: 24px;
        border-radius: 32px;
    }
    
    .form-main-title {
        font-size: 20px;
    }
    
    .form-section-title {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .form-conditional-fields.visible {
        flex-direction: column;
    }
    
    .form-conditional-fields.visible .form-group {
        width: 100%;
    }
    
    .form-toggle-buttons {
        border-radius: 24px;
        flex-direction: column;
        gap: 4px;
    }
    
    .form-toggle-btn {
        padding: 12px 16px;
    }
    
    .form-checkboxes-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-insurance-checkboxes {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 24px;
        align-items: center;
    }
    
    .form-insurance-checkboxes .form-checkbox-separator {
        display: none;
    }

    .form-success-message h2 {
        font-size: 36px;
        margin: 0 0 20px 0;
    }

    .form-success-message p {
        font-size: 16px;
        line-height: 24px;
    }
}