/* M&I Master Class Registration Form Styles */

#mi-masterclass-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mi-registration-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.mi-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mi-form-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.mi-form-header h3 {
    color: #666;
    font-size: 20px;
    font-weight: 400;
}

.mi-form-group {
    margin-bottom: 25px;
}

.mi-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.mi-form-group .required {
    color: #e74c3c;
}

.mi-form-group input[type="text"],
.mi-form-group input[type="email"],
.mi-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mi-form-group input[type="text"]:focus,
.mi-form-group input[type="email"]:focus,
.mi-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}

.mi-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mi-radio-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mi-radio-wrapper:hover {
    background: #f0f0f0;
    border-color: #007cba;
}

.mi-radio-wrapper input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mi-radio-wrapper label {
    flex-grow: 1;
    margin-bottom: 0;
    cursor: pointer;
}

.mi-type-info {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.mi-radio-wrapper.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.mi-radio-wrapper.disabled input,
.mi-radio-wrapper.disabled label {
    cursor: not-allowed;
}

.mi-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
}

.mi-checkbox-wrapper input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mi-checkbox-wrapper label {
    flex-grow: 1;
    margin-bottom: 0;
}

.mi-checkbox-wrapper label a {
    color: #007cba;
    text-decoration: none;
}

.mi-checkbox-wrapper label a:hover {
    text-decoration: underline;
}

.mi-form-submit {
    margin-top: 30px;
    text-align: center;
}

.mi-submit-btn {
    background: #007cba;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.mi-submit-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mi-submit-btn:active {
    transform: translateY(0);
}

.mi-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.mi-loading-spinner {
    margin-top: 20px;
    color: #666;
}

.mi-loading-spinner .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: mi-spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

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

.mi-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.mi-error-message.show {
    display: block;
}

.mi-form-group.has-error input,
.mi-form-group.has-error .mi-radio-wrapper,
.mi-form-group.has-error .mi-checkbox-wrapper {
    border-color: #e74c3c;
}

.mi-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.mi-error-message-general {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Responsywność */
@media (max-width: 600px) {
    #mi-masterclass-form-container {
        padding: 15px;
        box-shadow: none;
    }
    
    .mi-form-header h2 {
        font-size: 24px;
    }
    
    .mi-form-header h3 {
        font-size: 18px;
    }
    
    .mi-submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .mi-radio-wrapper {
        padding: 12px;
    }
}

/* Animacje dla komunikatów */
.mi-success-message,
.mi-error-message-general {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styl dla pełnych miejsc */
.mi-spots-full {
    color: #e74c3c;
    font-weight: bold;
}

/* Tooltip dla informacji o miejscach */
.mi-tooltip {
    position: relative;
    display: inline-block;
}

.mi-tooltip .mi-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.mi-tooltip:hover .mi-tooltiptext {
    visibility: visible;
    opacity: 1;
}
