/* Frontend Styles for Workshop Registration */

.tmw-registration-form {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tmw-step {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tmw-step-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.tmw-step-description {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.tmw-form-group {
    margin-bottom: 20px;
}

.tmw-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tmw-required {
    color: #e74c3c;
}

.tmw-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tmw-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tmw-form-control.error {
    border-color: #e74c3c;
}

textarea.tmw-form-control {
    min-height: 100px;
    resize: vertical;
}

select.tmw-form-control {
    background: #fff url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') no-repeat right 12px center;
    background-size: 12px;
    padding-right: 35px;
    appearance: none;
}

.tmw-radio-group,
.tmw-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tmw-radio-label,
.tmw-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.tmw-radio-label input,
.tmw-checkbox-label input {
    width: auto;
    margin: 0;
}

.tmw-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tmw-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.tmw-btn-primary {
    background: #0073aa;
    color: white;
}

.tmw-btn-primary:hover {
    background: #005a87;
}

.tmw-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tmw-btn-secondary {
    background: #666;
    color: white;
}

.tmw-btn-secondary:hover {
    background: #555;
}

.tmw-gate-message,
.tmw-form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.tmw-gate-message.success,
.tmw-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tmw-gate-message.error,
.tmw-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tmw-search-wrapper {
    position: relative;
    display: inline-block;
}

.tmw-clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    color: #666;
}

.tmw-success-message {
    text-align: center;
    padding: 20px;
}

.tmw-success-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.tmw-no-fields {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.tmw-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmw-registration-form {
        margin: 0 15px;
    }
    
    .tmw-step {
        padding: 20px;
    }
    
    .tmw-step-title {
        font-size: 20px;
    }
    
    .tmw-form-actions {
        flex-direction: column;
    }
    
    .tmw-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .tmw-radio-group,
    .tmw-checkbox-group {
        gap: 15px;
    }
}

/* Loading state */
.tmw-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.tmw-btn:focus,
.tmw-form-control:focus,
.tmw-radio-label input:focus,
.tmw-checkbox-label input:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tmw-form-control {
        border-width: 3px;
    }
    
    .tmw-btn {
        border: 2px solid currentColor;
    }
}
