.mltd-registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Remove top margin from first child to align to top */
.mltd-registration-wrapper > *:first-child {
    margin-top: 0 !important;
}

.mltd-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.mltd-intro {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.mltd-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.mltd-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.mltd-message.mltd-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mltd-message.mltd-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mltd-message.mltd-error ul {
    margin: 0;
    padding-left: 20px;
}

.mltd-form-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 6px;
    overflow: hidden;
}

.mltd-company-section {
    background-color: #e8f4f8;
}

.mltd-form-section > label {
    display: inline-block;
    min-width: 200px;
    margin-right: 15px;
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
    vertical-align: middle;
    float: left;
}

.mltd-form-section > input[type="text"],
.mltd-form-section > input[type="number"] {
    display: inline-block;
    width: 300px;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    vertical-align: middle;
    float: right;
    text-align: left;
}

.mltd-form-section > div.mltd-form-row {
    clear: both;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mltd-form-section > div.mltd-form-row label {
    display: inline-block;
    min-width: 250px;
    flex-shrink: 0;
    margin-right: 15px;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    vertical-align: middle;
    text-align: left;
}

.mltd-form-section > div.mltd-form-row > div {
    width: 300px;
    max-width: 400px;
    flex-shrink: 0;
    text-align: left;
}

.mltd-form-section > button {
    display: inline-block;
    margin-top: 10px;
    vertical-align: middle;
    float: right;
    clear: right;
}

.mltd-form-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mltd-form-row label {
    display: inline-block;
    min-width: 250px;
    flex-shrink: 0;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.mltd-input {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: left;
}

.mltd-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.mltd-room-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.mltd-room-label {
    background-color: #999;
    color: #fff;
    padding: 8px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.mltd-account-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.mltd-account-section h3 {
    margin-top: 0;
    color: #856404;
}

.mltd-account-section p {
    color: #856404;
    margin-bottom: 15px;
}

.mltd-account-section small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.required {
    color: #d63638;
}

.mltd-form-actions {
    margin-top: 30px;
    text-align: center;
}

.mltd-submit-button {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mltd-submit-button:hover {
    background-color: #005a87;
}

.mltd-submit-button:active {
    background-color: #004a6f;
}

/* User Submissions Styles */
.mltd-user-submissions {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.mltd-submission-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.mltd-submission-info p {
    margin: 8px 0;
}

.mltd-rooms-display {
    margin-bottom: 20px;
}

.mltd-room-display {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.mltd-room-display h3 {
    margin-top: 0;
    color: #0073aa;
}

.mltd-room-display p {
    margin: 8px 0;
}

.mltd-edit-link {
    text-align: center;
    margin-top: 30px;
}

.mltd-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.mltd-button:hover {
    background-color: #005a87;
    color: #fff;
}

/* Events List Styles */
.mltd-events-list {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.mltd-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mltd-event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mltd-event-card h3 {
    margin-top: 0;
    color: #0073aa;
}

.mltd-event-card.mltd-past-event {
    opacity: 0.7;
    background: #f5f5f5;
}

.mltd-event-description {
    margin: 10px 0;
    color: #555;
}

.mltd-event-date {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.mltd-event-actions {
    margin-top: 15px;
}

.mltd-upcoming-badge {
    background: #46b450;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.mltd-past-badge {
    background: #dc3232;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.mltd-submission-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mltd-submission-card.mltd-past-event {
    opacity: 0.7;
    background: #f5f5f5;
}

.mltd-submission-header h3 {
    margin-top: 0;
    color: #0073aa;
}

.mltd-locked-message {
    color: #dc3232;
    font-weight: 600;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.mltd-message.mltd-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.mltd-event-filter {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.mltd-event-filter label {
    margin-right: 10px;
    font-weight: 600;
}

.mltd-event-filter select {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .mltd-registration-wrapper {
        padding: 0;
    }
    .mltd-user-submissions,
    .mltd-events-list {
        padding: 15px;
    }
    
    .mltd-form-section > label,
    .mltd-form-section > div label {
        display: block;
        min-width: auto;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .mltd-form-section > input[type="text"],
    .mltd-form-section > input[type="number"] {
        display: block;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 10px;
        float: none;
    }
    
    .mltd-form-section > button {
        display: block;
        width: 100%;
        margin-top: 10px;
        float: none;
    }
    
    .mltd-form-section > label {
        float: none;
    }
    
    .mltd-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .mltd-form-row label {
        display: block;
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .mltd-input {
        width: 100%;
        max-width: 100%;
    }
    
    .mltd-events-grid {
        grid-template-columns: 1fr;
    }
}
